Comparing version 0.28.0-rc.2 to 0.28.0
@@ -134,2 +134,6 @@ import es6Promise from 'es6-promise'; | ||
function typedEntityToFalcorListLeaf(entity, options) { | ||
return snakeCase(options.type) + '_' + snakeCase(entity.name) + '_list'; | ||
} | ||
var name$4 = 'comment'; | ||
@@ -194,3 +198,3 @@ var pluralName$4 = 'comments'; | ||
var defaultProperties$6 = ['id', 'content', 'content_id', 'content_type', 'new', 'position']; | ||
var defaultProperties$6 = ['id', 'content_id', 'content_type', 'new', 'position']; | ||
@@ -519,3 +523,3 @@ var featuredContent = Object.freeze({ | ||
var defaultProperties$22 = ['id', 'name', 'created_at', 'updated_at', 'listable_type', 'system']; | ||
var defaultProperties$22 = ['id', 'name', 'created_at', 'updated_at']; | ||
@@ -600,3 +604,3 @@ var toDoList = Object.freeze({ | ||
var defaultProperties$26 = ['id', 'name', 'created_at', 'updated_at', 'listable_id', 'listable_type', 'viewed', 'system', 'item_count', 'completed_item_count', 'to_do_list_id']; | ||
var defaultProperties$26 = ['id', 'name']; | ||
@@ -752,13 +756,12 @@ var userToDoList = Object.freeze({ | ||
var basePath = void 0; | ||
var basePath = []; | ||
if (parentEntity) { | ||
var rootLeaf = entityToFalcorRootLeaf(parentEntity); | ||
var listLeaf = entityToFalcorListLeaf(entity); | ||
basePath = concat(basePath, [rootLeaf, parentOptions.id]); | ||
} | ||
basePath = [rootLeaf, parentOptions.id, listLeaf]; | ||
} else { | ||
var _listLeaf = entityToFalcorListLeaf(entity); | ||
var listLeaf = !isNil(options.type) ? typedEntityToFalcorListLeaf(entity, options) : entityToFalcorListLeaf(entity); | ||
basePath = [_listLeaf]; | ||
} | ||
basePath = concat(basePath, listLeaf); | ||
@@ -795,11 +798,10 @@ if (optionsHasQuery(options)) { | ||
var entityList = void 0; | ||
var listLeaf = !isNil(options.type) ? typedEntityToFalcorListLeaf(entity, options) : entityToFalcorListLeaf(entity); | ||
if (parentEntity) { | ||
var parentRootLeaf = entityToFalcorRootLeaf(parentEntity); | ||
var entityListLeaf = entityToFalcorListLeaf(entity); | ||
entityList = jsonGraph.json[parentRootLeaf][parentOptions.id][entityListLeaf]; | ||
entityList = jsonGraph.json[parentRootLeaf][parentOptions.id][listLeaf]; | ||
} else { | ||
var listLeaf = entityToFalcorListLeaf(entity); | ||
entityList = jsonGraph.json[listLeaf]; | ||
var _listLeaf = entityToFalcorListLeaf(entity); | ||
entityList = jsonGraph.json[_listLeaf]; | ||
} | ||
@@ -806,0 +808,0 @@ |
{ | ||
"name": "supergloo", | ||
"version": "0.28.0-rc.2", | ||
"version": "0.28.0", | ||
"description": "Easily work with data on the Gloo platform", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
277380
8276