fix types

This commit is contained in:
Denys Vuika
2019-10-14 16:35:01 +01:00
parent b900b69af4
commit ec30702d57
6 changed files with 11 additions and 11 deletions

View File

@@ -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 = {};
}

View File

@@ -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();

View File

@@ -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() {

View File

@@ -182,7 +182,7 @@ export class AnalyticsService {
);
}
getReportsByParams(reportId: number, paramsQuery: any): Observable<any> {
getReportsByParams(reportId: string, paramsQuery: any): Observable<any> {
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<any> {
updateReport(reportId: string, name: string): Observable<any> {
return from(this.apiService.getInstance().activiti.reportApi.updateReport(reportId, name))
.pipe(
map(() => this.logService.info('upload')),

6
package-lock.json generated
View File

@@ -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",

View File

@@ -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",