@alfresco/adf-content-services 9.1.0-16743363738 → 9.1.0-16748681787
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -25016,9 +25016,12 @@ class NodeCommentsService {
|
|
|
25016
25016
|
this._commentsApi = this._commentsApi ?? new CommentsApi(this.apiService.getInstance());
|
|
25017
25017
|
return this._commentsApi;
|
|
25018
25018
|
}
|
|
25019
|
-
|
|
25019
|
+
get peopleApi() {
|
|
25020
|
+
this._peopleApi = this._peopleApi ?? new PeopleApi(this.apiService.getInstance());
|
|
25021
|
+
return this._peopleApi;
|
|
25022
|
+
}
|
|
25023
|
+
constructor(apiService) {
|
|
25020
25024
|
this.apiService = apiService;
|
|
25021
|
-
this.contentService = contentService;
|
|
25022
25025
|
}
|
|
25023
25026
|
/**
|
|
25024
25027
|
* Gets all comments that have been added to a task.
|
|
@@ -25057,10 +25060,16 @@ class NodeCommentsService {
|
|
|
25057
25060
|
createdBy: new User(comment.createdBy)
|
|
25058
25061
|
});
|
|
25059
25062
|
}
|
|
25060
|
-
|
|
25061
|
-
|
|
25063
|
+
/**
|
|
25064
|
+
* Gets the avatar image URL for a given user ID.
|
|
25065
|
+
*
|
|
25066
|
+
* @param userId ID of the user
|
|
25067
|
+
* @returns The URL of the user's avatar image
|
|
25068
|
+
*/
|
|
25069
|
+
getUserImage(userId) {
|
|
25070
|
+
return this.peopleApi.getAvatarImageUrl(userId);
|
|
25062
25071
|
}
|
|
25063
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NodeCommentsService, deps: [{ token: AlfrescoApiService }
|
|
25072
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NodeCommentsService, deps: [{ token: AlfrescoApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
25064
25073
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NodeCommentsService, providedIn: 'root' }); }
|
|
25065
25074
|
}
|
|
25066
25075
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: NodeCommentsService, decorators: [{
|
|
@@ -25068,7 +25077,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
|
25068
25077
|
args: [{
|
|
25069
25078
|
providedIn: 'root'
|
|
25070
25079
|
}]
|
|
25071
|
-
}], ctorParameters: () => [{ type: AlfrescoApiService }
|
|
25080
|
+
}], ctorParameters: () => [{ type: AlfrescoApiService }] });
|
|
25072
25081
|
|
|
25073
25082
|
/*!
|
|
25074
25083
|
* @license
|