diff --git a/lib/insights/src/lib/analytics-process/components/analytics-generator.component.ts b/lib/insights/src/lib/analytics-process/components/analytics-generator.component.ts index 7a3bb1888e..9c4b7cdff9 100644 --- a/lib/insights/src/lib/analytics-process/components/analytics-generator.component.ts +++ b/lib/insights/src/lib/analytics-process/components/analytics-generator.component.ts @@ -67,13 +67,13 @@ export class AnalyticsGeneratorComponent implements OnChanges { ngOnChanges() { if (this.reportId && this.reportParamQuery) { - this.generateReport(this.reportId, this.reportParamQuery); + this.generateReport(`${this.reportId}`, this.reportParamQuery); } else { this.reset(); } } - public generateReport(reportId, reportParamQuery) { + public generateReport(reportId: string, reportParamQuery: any) { if (reportParamQuery === undefined || reportParamQuery === null) { reportParamQuery = {}; } diff --git a/lib/insights/src/lib/analytics-process/components/analytics-report-parameters.component.ts b/lib/insights/src/lib/analytics-process/components/analytics-report-parameters.component.ts index 2e778c3ed1..dbe3697654 100644 --- a/lib/insights/src/lib/analytics-process/components/analytics-report-parameters.component.ts +++ b/lib/insights/src/lib/analytics-process/components/analytics-report-parameters.component.ts @@ -315,7 +315,7 @@ export class AnalyticsReportParametersComponent implements OnInit, OnChanges, On public editTitle() { this.analyticsService - .updateReport(this.reportParameters.id, this.reportParameters.name) + .updateReport(`${this.reportParameters.id}`, this.reportParameters.name) .subscribe( () => { this.editDisable(); diff --git a/lib/insights/src/lib/analytics-process/components/analytics.component.ts b/lib/insights/src/lib/analytics-process/components/analytics.component.ts index b110c45c06..e3f9c6e0f9 100644 --- a/lib/insights/src/lib/analytics-process/components/analytics.component.ts +++ b/lib/insights/src/lib/analytics-process/components/analytics.component.ts @@ -54,8 +54,8 @@ export class AnalyticsComponent implements OnChanges { this.analyticsGenerator.reset(); } - public showReport($event) { - this.analyticsGenerator.generateReport(this.reportId, $event); + public showReport($event: any) { + this.analyticsGenerator.generateReport(`${this.reportId}`, $event); } public reset() { diff --git a/lib/insights/src/lib/analytics-process/services/analytics.service.ts b/lib/insights/src/lib/analytics-process/services/analytics.service.ts index c56efd80ec..5e1c850b08 100644 --- a/lib/insights/src/lib/analytics-process/services/analytics.service.ts +++ b/lib/insights/src/lib/analytics-process/services/analytics.service.ts @@ -182,7 +182,7 @@ export class AnalyticsService { ); } - getReportsByParams(reportId: number, paramsQuery: any): Observable { + getReportsByParams(reportId: string, paramsQuery: any): Observable { return from(this.apiService.getInstance().activiti.reportApi.getReportsByParams(reportId, paramsQuery)) .pipe( map((res: any) => { @@ -217,7 +217,7 @@ export class AnalyticsService { ); } - updateReport(reportId: number, name: string): Observable { + updateReport(reportId: string, name: string): Observable { return from(this.apiService.getInstance().activiti.reportApi.updateReport(reportId, name)) .pipe( map(() => this.logService.info('upload')), diff --git a/package-lock.json b/package-lock.json index 4ec9e51ec2..15441a4dfa 100644 --- a/package-lock.json +++ b/package-lock.json @@ -76,9 +76,9 @@ } }, "@alfresco/js-api": { - "version": "3.6.0-7e8896bfba998c91066a9f4752af2ba4b7ea2aa2", - "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-3.6.0-7e8896bfba998c91066a9f4752af2ba4b7ea2aa2.tgz", - "integrity": "sha512-oIpYPWDwsiGGM0glZTY2KqIw3/DTYtP8QxR2/MqlMDp76VBfiQk3vIJGS04tQbtoUqC24nU59TwcPp3o6Pfn/A==", + "version": "3.6.0-ff07b76cae68703ca071ade23be3d400f7ff55f0", + "resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-3.6.0-ff07b76cae68703ca071ade23be3d400f7ff55f0.tgz", + "integrity": "sha512-vwwf3S5nCmWP1o8RsQz2HCjk8fyEmGTXgCusyc//gPUJIyuYIihuqcqS14DVoSJKicY0TMo6vlsx7RKdl+ddTQ==", "requires": { "event-emitter": "0.3.4", "minimatch": "3.0.4", diff --git a/package.json b/package.json index e721459efb..f6a95b7871 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,7 @@ "@alfresco/adf-process-services": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5", "@alfresco/adf-process-services-cloud": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5", "@alfresco/adf-testing": "3.6.0-1d7ef6209592e8703cdbaf48d4340d141fa461a5", - "@alfresco/js-api": "3.6.0-7e8896bfba998c91066a9f4752af2ba4b7ea2aa2", + "@alfresco/js-api": "3.6.0-ff07b76cae68703ca071ade23be3d400f7ff55f0", "@angular/animations": "^7.2.15", "@angular/cdk": "7.3.7", "@angular/common": "^7.2.15",