mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-1638] refactor sharedLinksApi to use alfresco-js-api (#547)
* refactor sharedLinksApi to use alfresco-js-api * update package-lock.json * re-created package-lock.json file * update package-lock * spellcheck fixes
This commit is contained in:
committed by
Denys Vuika
parent
ad6e027e6d
commit
50b0023967
@@ -34,14 +34,6 @@ import { TrashcanApi } from './apis/trashcan/trashcan-api';
|
||||
import { SearchApi } from './apis/search/search-api';
|
||||
|
||||
export class RepoClient {
|
||||
public people: PeopleApi = new PeopleApi(this.auth, this.config);
|
||||
public nodes: NodesApi = new NodesApi(this.auth, this.config);
|
||||
public sites: SitesApi = new SitesApi(this.auth, this.config);
|
||||
public favorites: FavoritesApi = new FavoritesApi(this.auth, this.config);
|
||||
public shared: SharedLinksApi = new SharedLinksApi(this.auth, this.config);
|
||||
public trashcan: TrashcanApi = new TrashcanApi(this.auth, this.config);
|
||||
public search: SearchApi = new SearchApi(this.auth, this.config);
|
||||
|
||||
constructor(
|
||||
private username: string = RepoClientAuth.DEFAULT_USERNAME,
|
||||
private password: string = RepoClientAuth.DEFAULT_PASSWORD,
|
||||
@@ -52,6 +44,34 @@ export class RepoClient {
|
||||
const { username, password } = this;
|
||||
return { username, password };
|
||||
}
|
||||
|
||||
get people () {
|
||||
return new PeopleApi(this.auth, this.config);
|
||||
}
|
||||
|
||||
get nodes() {
|
||||
return new NodesApi(this.auth, this.config);
|
||||
}
|
||||
|
||||
get sites() {
|
||||
return new SitesApi(this.auth, this.config);
|
||||
}
|
||||
|
||||
get favorites() {
|
||||
return new FavoritesApi(this.auth, this.config);
|
||||
}
|
||||
|
||||
get shared() {
|
||||
return new SharedLinksApi(this.auth.username, this.auth.password);
|
||||
}
|
||||
|
||||
get trashcan() {
|
||||
return new TrashcanApi(this.auth, this.config);
|
||||
}
|
||||
|
||||
get search() {
|
||||
return new SearchApi(this.auth, this.config);
|
||||
}
|
||||
}
|
||||
|
||||
export * from './apis/nodes/node-body-create';
|
||||
|
Reference in New Issue
Block a user