@@ -25,7 +25,7 @@ export class Report extends embed.Embed {
2525 */
2626 addFilter ( filter : models . IFilter , target ?: models . IPageTarget | models . IVisualTarget ) : Promise < void > {
2727 const targetUrl = this . getTargetUrl ( target ) ;
28- return this . hpm . post < void > ( `${ targetUrl } /filters` , filter , { "report-id" : this . config . id } )
28+ return this . hpm . post < void > ( `${ targetUrl } /filters` , filter , { uid : this . config . uniqueId } )
2929 . catch ( response => {
3030 throw response . body ;
3131 } ) ;
@@ -56,7 +56,7 @@ export class Report extends embed.Embed {
5656 */
5757 getFilters ( target ?: models . IPageTarget | models . IVisualTarget ) : Promise < models . IFilter [ ] > {
5858 const targetUrl = this . getTargetUrl ( target ) ;
59- return this . hpm . get < models . IFilter [ ] > ( `${ targetUrl } /filters` , { "report-id" : this . config . id } )
59+ return this . hpm . get < models . IFilter [ ] > ( `${ targetUrl } /filters` , { uid : this . config . uniqueId } )
6060 . then ( response => response . body ,
6161 response => {
6262 throw response . body ;
@@ -74,7 +74,7 @@ export class Report extends embed.Embed {
7474 * ```
7575 */
7676 getPages ( ) : Promise < models . IPage [ ] > {
77- return this . hpm . get < models . IPage [ ] > ( '/report/pages' , { "report-id" : this . config . id } )
77+ return this . hpm . get < models . IPage [ ] > ( '/report/pages' , { uid : this . config . uniqueId } )
7878 . then ( response => response . body ,
7979 response => {
8080 throw response . body ;
@@ -98,7 +98,7 @@ export class Report extends embed.Embed {
9898 displayName : null
9999 } ;
100100
101- return this . hpm . put < models . IError [ ] > ( '/report/pages/active' , page , { "report-id" : this . config . id } )
101+ return this . hpm . put < models . IError [ ] > ( '/report/pages/active' , page , { uid : this . config . uniqueId } )
102102 . catch ( response => {
103103 throw response . body ;
104104 } ) ;
@@ -109,7 +109,7 @@ export class Report extends embed.Embed {
109109 */
110110 removeFilter ( filter : models . IFilter , target ?: models . IPageTarget | models . IVisualTarget ) : Promise < void > {
111111 const targetUrl = this . getTargetUrl ( target ) ;
112- return this . hpm . delete < models . IError [ ] > ( `${ targetUrl } /filters` , filter , { "report-id" : this . config . id } )
112+ return this . hpm . delete < models . IError [ ] > ( `${ targetUrl } /filters` , filter , { uid : this . config . uniqueId } )
113113 . catch ( response => {
114114 throw response . body ;
115115 } ) ;
@@ -123,7 +123,7 @@ export class Report extends embed.Embed {
123123 * ```
124124 */
125125 removeAllFilters ( ) : Promise < void > {
126- return this . hpm . delete < models . IError [ ] > ( '/report/allfilters' , null , { "report-id" : this . config . id } )
126+ return this . hpm . delete < models . IError [ ] > ( '/report/allfilters' , null , { uid : this . config . uniqueId } )
127127 . catch ( response => {
128128 throw response . body ;
129129 } ) ;
@@ -136,7 +136,7 @@ export class Report extends embed.Embed {
136136 */
137137 updateFilter ( filter : models . IFilter , target ?: models . IPageTarget | models . IVisualTarget ) : Promise < void > {
138138 const targetUrl = this . getTargetUrl ( target ) ;
139- return this . hpm . put < models . IError [ ] > ( `${ targetUrl } /filters` , filter , { "report-id" : this . config . id } )
139+ return this . hpm . put < models . IError [ ] > ( `${ targetUrl } /filters` , filter , { uid : this . config . uniqueId } )
140140 . catch ( response => {
141141 throw response . body ;
142142 } ) ;
@@ -146,7 +146,7 @@ export class Report extends embed.Embed {
146146 * Update settings of report (filter pane visibility, page navigation visibility)
147147 */
148148 updateSettings ( settings : models . ISettings ) : Promise < void > {
149- return this . hpm . patch < models . IError [ ] > ( '/report/settings' , settings , { "report-id" : this . config . id } )
149+ return this . hpm . patch < models . IError [ ] > ( '/report/settings' , settings , { uid : this . config . uniqueId } )
150150 . catch ( response => {
151151 throw response . body ;
152152 } ) ;
0 commit comments