all
Retrieves a paginated list of article content accessible to the current user profile.
The returned PaginatedResource's reactivity (restarting on profile/language change, and on auth state changes) is bound to scope: its internal machinery stops once scope has no active collectors of PaginatedResource.state, and resumes on the next collection.
Return
A PaginatedResource wrapping the fetched co.cafeyn.cgs.api.model.Article.
Parameters
Specify a limit for the number of items returned per page.
The CoroutineScope used to bound the lifecycle of the returned PaginatedResource.
Retrieves a paginated list of article content accessible to the current user profile filtered by publicationIds, optionally narrowed to the articles of issueIds.
The two filters combine: passing both returns the articles that belong to one of issueIds and to one of publicationIds. Pass issueIds alone to list the contents of an issue whatever it was published in, and publicationIds alone for every article of a publication whichever issue it came out in.
Current limitation: passing both widens the query to the whole publication instead of narrowing it to the issues. Until that is corrected, pass issueIds on its own to scope a query to an issue — an issue already names the publication it belongs to, so nothing is lost by dropping publicationIds.
The returned PaginatedResource's reactivity (restarting on profile/language change, and on auth state changes) is bound to scope: its internal machinery stops once scope has no active collectors of PaginatedResource.state, and resumes on the next collection.
Return
A PaginatedResource wrapping the fetched co.cafeyn.cgs.api.model.Article. Returns a PaginatedResource in an error state with co.cafeyn.cgs.api.errors.CgsError.Content.NotFound if both publicationIds and issueIds are empty.
Parameters
Publication identifiers to query.
Issue identifiers to narrow the query to. Empty leaves the query at publication level.
Specify a limit for the number of items returned per page.
The CoroutineScope used to bound the lifecycle of the returned PaginatedResource.