2023-01-14 18:24:11 +00:00
|
|
|
import { BaseAPI, route } from "../base";
|
|
|
|
import { ItemSummary } from "../types/data-contracts";
|
|
|
|
import { PaginationResult } from "../types/non-generated";
|
|
|
|
|
|
|
|
export class AssetsApi extends BaseAPI {
|
|
|
|
async get(id: string, page = 1, pageSize = 50) {
|
|
|
|
return await this.http.get<PaginationResult<ItemSummary>>({
|
2023-07-31 14:05:37 +00:00
|
|
|
url: route(`/assets/${id}`, { page, pageSize }),
|
2023-01-14 18:24:11 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|