[AD-4222] e2e compilation fixes (#4426)

* Run tsc on the e2e folder and as part of the sh script

* in progress

* in progress

* in progress

* in progress

* in progress

* in progress

* fixing compile errors

* fixing compile errors.

* Fix the apiService and exclude nodemodules

* Add semicolumn

* fix import

* fix configuration test package

* fix

* fix errors

* fix typescript

* restore packages.json

* fix errors after rebase

* fix type prolems and add protracotr path mapping

* remove undefined
This commit is contained in:
gmandakini
2019-03-15 23:11:58 +00:00
committed by Eugenio Romano
parent f891ea3df5
commit fc2132e248
48 changed files with 3400 additions and 3950 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "@alfresco/adf-process-services",
"description": "Alfresco ADF process services",
"version": "3.1.0-beta4",
"version": "3.1.0-beta5",
"author": "Alfresco Software, Ltd.",
"main": "bundles/adf-process-services.js",
"repository": {
@@ -25,10 +25,10 @@
"@angular/platform-browser": ">=7.0.3",
"@angular/platform-browser-dynamic": ">=7.0.3",
"@angular/router": ">=7.0.3",
"@alfresco/js-api": "3.1.0-beta4",
"@alfresco/js-api": "3.1.0-6eec5abc14bb31af3512cba5492f4ba43ffa2fac",
"rxjs": ">=6.2.2",
"@alfresco/adf-core": "3.1.0-beta4",
"@alfresco/adf-content-services": "3.1.0-beta4",
"@alfresco/adf-core": "3.1.0-beta5",
"@alfresco/adf-content-services": "3.1.0-beta5",
"@ngx-translate/core": ">=11.0.0",
"core-js": ">=2.5.4",
"hammerjs": ">=2.0.8",

View File

@@ -78,7 +78,7 @@ export class ProcessService {
* @returns Binary PDF data
*/
fetchProcessAuditPdfById(processId: string): Observable<Blob> {
return from<Blob>(this.alfrescoApiService.getInstance().activiti.processApi.getProcessAuditPdf(processId))
return from(this.alfrescoApiService.getInstance().activiti.processApi.getProcessAuditPdf(processId))
.pipe(
catchError((err) => this.handleProcessError(err))
);
@@ -192,7 +192,7 @@ export class ProcessService {
* @returns Null response notifying when the operation is complete
*/
cancelProcess(processInstanceId: string): Observable<void> {
return from<void>(
return from(
this.alfrescoApiService.getInstance().activiti.processApi.deleteProcessInstance(processInstanceId)
)
.pipe(
@@ -236,7 +236,7 @@ export class ProcessService {
* @returns Null response notifying when the operation is complete
*/
deleteProcessInstanceVariable(processInstanceId: string, variableName: string): Observable<void> {
return from<void>(
return from(
this.alfrescoApiService.getInstance().activiti.processInstanceVariablesApi.deleteProcessInstanceVariable(processInstanceId, variableName)
)
.pipe(

View File

@@ -238,7 +238,7 @@ export class TaskListService {
* @returns Null response notifying when the operation is complete
*/
deleteTask(taskId: string): Observable<TaskDetailsModel> {
return from<TaskDetailsModel>(this.callApiDeleteTask(taskId))
return from(this.callApiDeleteTask(taskId))
.pipe(
catchError((err) => this.handleError(err))
);
@@ -250,7 +250,7 @@ export class TaskListService {
* @returns Null response notifying when the operation is complete
*/
deleteForm(taskId: string): Observable<TaskDetailsModel> {
return from<TaskDetailsModel>(this.callApiDeleteForm(taskId))
return from(this.callApiDeleteForm(taskId))
.pipe(
catchError((err) => this.handleError(err))
);
@@ -339,7 +339,7 @@ export class TaskListService {
* @returns Details of the claimed task
*/
claimTask(taskId: string): Observable<TaskDetailsModel> {
return from<TaskDetailsModel>(this.apiService.taskApi.claimTask(taskId))
return from(this.apiService.taskApi.claimTask(taskId))
.pipe(
catchError((err) => this.handleError(err))
);
@@ -351,7 +351,7 @@ export class TaskListService {
* @returns Null response notifying when the operation is complete
*/
unclaimTask(taskId: string): Observable<TaskDetailsModel> {
return from<TaskDetailsModel>(this.apiService.taskApi.unclaimTask(taskId))
return from(this.apiService.taskApi.unclaimTask(taskId))
.pipe(
catchError((err) => this.handleError(err))
);