gooddata
Advanced tools
Comparing version 5.0.0-bugsbunny338-jza-bb-764-getvalidelements-restrictivedefinitioncontent-support-2018-03-21T17-25-03-401Z to 5.0.0-bugsbunny338-jza-bb-764-getvalidelements-restrictivedefinitioncontent-support-2018-03-22T13-39-08-524Z
@@ -694,10 +694,16 @@ 'use strict'; | ||
return (0, _xhr.post)('/gdc/app/projects/' + projectId + '/executeAfm/debug', { | ||
body: JSON.stringify(afm) | ||
}).then(_xhr.parseJSON).then(function (reportDefinition) { | ||
body: { | ||
execution: { | ||
afm: afm | ||
} | ||
} | ||
}).then(_xhr.parseJSON).then(function (reportDefinitionResult) { | ||
return _extends({}, pickedOptions, { | ||
restrictiveDefinitionContent: reportDefinition.content | ||
restrictiveDefinitionContent: reportDefinitionResult.reportDefinition.content | ||
}); | ||
}); | ||
}; | ||
var getOptions = afm ? getRequestBodyWithReportDefinition : Promise.resolve(options); | ||
var getOptions = afm ? getRequestBodyWithReportDefinition : function () { | ||
return Promise.resolve(pickedOptions); | ||
}; | ||
@@ -704,0 +710,0 @@ return getOptions().then(function (requestBody) { |
{ | ||
"name": "gooddata", | ||
"version": "5.0.0-bugsbunny338-jza-bb-764-getvalidelements-restrictivedefinitioncontent-support-2018-03-21T17-25-03-401Z", | ||
"version": "5.0.0-bugsbunny338-jza-bb-764-getvalidelements-restrictivedefinitioncontent-support-2018-03-22T13-39-08-524Z", | ||
"author": "GoodData", | ||
@@ -5,0 +5,0 @@ "description": "GoodData JavaScript SDK", |
@@ -601,9 +601,13 @@ // Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved. | ||
`/gdc/app/projects/${projectId}/executeAfm/debug`, { | ||
body: JSON.stringify(afm) | ||
body: { | ||
execution: { | ||
afm | ||
} | ||
} | ||
} | ||
).then(parseJSON).then(reportDefinition => ({ | ||
).then(parseJSON).then(reportDefinitionResult => ({ | ||
...pickedOptions, | ||
restrictiveDefinitionContent: reportDefinition.content | ||
restrictiveDefinitionContent: reportDefinitionResult.reportDefinition.content | ||
})); | ||
const getOptions = afm ? getRequestBodyWithReportDefinition : Promise.resolve(options); | ||
const getOptions = afm ? getRequestBodyWithReportDefinition : () => Promise.resolve(pickedOptions); | ||
@@ -610,0 +614,0 @@ return getOptions().then(requestBody => post( |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1150546
26992