gooddata
Advanced tools
Comparing version 5.0.0-bugsbunny338-jza-bb-764-getvalidelements-restrictivedefinitioncontent-support-2018-03-22T13-39-08-524Z to 5.0.0-bugsbunny338-master-2018-04-23T17-03-07-647Z
@@ -156,8 +156,5 @@ 'use strict'; | ||
return getOnePage(pollingUri, offset).then(function (executionResult) { | ||
return { | ||
executionResponse: executionResponse, | ||
executionResult: executionResult | ||
}; | ||
return _extends({}, executionResponse, executionResult); | ||
}); | ||
}); | ||
} |
{ | ||
"name": "gooddata", | ||
"version": "5.0.0-bugsbunny338-jza-bb-764-getvalidelements-restrictivedefinitioncontent-support-2018-03-22T13-39-08-524Z", | ||
"version": "5.0.0-bugsbunny338-master-2018-04-23T17-03-07-647Z", | ||
"author": "GoodData", | ||
@@ -5,0 +5,0 @@ "description": "GoodData JavaScript SDK", |
@@ -6,2 +6,9 @@ # GoodData JS SDK | ||
### WARNING: This package is deprecated | ||
It has been renamed from `gooddata` to `@gooddata/gooddata-js` in April 2018. \ | ||
See https://www.npmjs.com/package/@gooddata/gooddata-js | ||
---------------- | ||
## Usage | ||
@@ -8,0 +15,0 @@ |
@@ -118,4 +118,4 @@ // Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved. | ||
return { | ||
executionResponse, | ||
executionResult | ||
...executionResponse, | ||
...executionResult | ||
}; | ||
@@ -122,0 +122,0 @@ }); |
@@ -599,21 +599,26 @@ // Copyright (C) 2007-2014, GoodData(R) Corporation. All rights reserved. | ||
const getRequestBodyWithReportDefinition = () => post( | ||
`/gdc/app/projects/${projectId}/executeAfm/debug`, { | ||
body: { | ||
execution: { | ||
afm | ||
const getRequestBodyWithReportDefinition = | ||
() => post( | ||
`/gdc/app/projects/${projectId}/executeAfm/debug`, { | ||
body: { | ||
execution: { | ||
afm | ||
} | ||
} | ||
} | ||
} | ||
).then(parseJSON).then(reportDefinitionResult => ({ | ||
...pickedOptions, | ||
restrictiveDefinitionContent: reportDefinitionResult.reportDefinition.content | ||
})); | ||
) | ||
.then(parseJSON) | ||
.then(reportDefinitionResult => ({ | ||
...pickedOptions, | ||
restrictiveDefinitionContent: reportDefinitionResult.reportDefinition.content | ||
})); | ||
const getOptions = afm ? getRequestBodyWithReportDefinition : () => Promise.resolve(pickedOptions); | ||
return getOptions().then(requestBody => post( | ||
`/gdc/md/${projectId}/obj/${id}/validElements${queryParams}`.replace(/\?$/, ''), { | ||
data: JSON.stringify({ validElementsRequest: requestBody }) | ||
} | ||
).then(parseJSON)); | ||
return getOptions() | ||
.then(requestBody => post( | ||
`/gdc/md/${projectId}/obj/${id}/validElements${queryParams}`.replace(/\?$/, ''), { | ||
data: JSON.stringify({ validElementsRequest: requestBody }) | ||
} | ||
) | ||
.then(parseJSON)); | ||
} | ||
@@ -620,0 +625,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
100
1150506
26991