Adjust ADF to latest JS-API version (#8882)

* Bump js-api version

* Fix imports

* Fix content-services unit tests

* Fix process-services unit tests

* [ci:force] Trigger CI

* Fix code smells

* Fix orderBy param

* Fix code smells

* Fix failing unit tests

* Bump js-api version and align with new changes

* Remove dangling coma

* Fix delete return type

* Add correct date format in task filters e2es

* Fix typing in task filter sorting

* Fix activiti content api import

* Add null check for has avatar

* Make User class instead of type

* Fix user type in comment model

* Fix sonar cloud issue

* Type fixes

* Update js-api version
This commit is contained in:
MichalKinas
2023-09-07 13:29:42 +02:00
committed by GitHub
parent 876ca7a0a7
commit 76e2870c66
64 changed files with 628 additions and 884 deletions

View File

@@ -18,14 +18,14 @@
import { User } from './general-user.model';
export class CommentModel {
id: number;
id: string | number;
message: string;
created: Date;
createdBy: User;
isSelected: boolean;
get hasAvatarPicture(): boolean {
return !!(this.createdBy['pictureId'] || this.createdBy['avatarId']);
return !!this.createdBy && !!(this.createdBy['pictureId'] || this.createdBy['avatarId']);
}
get userDisplayName(): string {
@@ -51,7 +51,7 @@ export class CommentModel {
return result.toUpperCase();
}
constructor(obj?: any) {
constructor(obj?: Partial<CommentModel>) {
if (obj) {
this.id = obj.id;
this.message = obj.message;