diff --git a/src/abstractions/api.service.ts b/src/abstractions/api.service.ts index 0410fab49b..e72140982f 100644 --- a/src/abstractions/api.service.ts +++ b/src/abstractions/api.service.ts @@ -155,6 +155,7 @@ export abstract class ApiService { organizationId: string) => Promise; getCollectionDetails: (organizationId: string, id: string) => Promise; + getUserCollections: () => Promise>; getCollections: (organizationId: string) => Promise>; getCollectionUsers: (organizationId: string, id: string) => Promise>; postCollection: (organizationId: string, request: CollectionRequest) => Promise; diff --git a/src/services/api.service.ts b/src/services/api.service.ts index 18fdd9935c..a0b9c816e7 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -434,6 +434,11 @@ export class ApiService implements ApiServiceAbstraction { return new CollectionGroupDetailsResponse(r); } + async getUserCollections(): Promise> { + const r = await this.send('GET', '/collections', null, true, true); + return new ListResponse(r, CollectionResponse); + } + async getCollections(organizationId: string): Promise> { const r = await this.send('GET', '/organizations/' + organizationId + '/collections', null, true, true); return new ListResponse(r, CollectionResponse);