feat: finish implementing getReportsByAppId method

This commit is contained in:
StevanFreeborn
2023-02-08 23:33:27 -06:00
parent 9c3a8da485
commit 58de996f1e
5 changed files with 294 additions and 17 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ import { type FileInfo } from './FileInfo';
import { type File } from './File';
import { type ListItemResponse } from './ListItemResponse';
import { type ListItemRequest } from './ListItemRequest';
import { type GetPagedReportsResponse } from './GetPagedReportsResponse';
/**
* @class OnspringClient - A client that can communicate with the Onspring API.
@@ -309,7 +310,7 @@ export class OnspringClient {
public async getReportsByAppId(
appId: number,
pagingRequest: PagingRequest = new PagingRequest(1, 50)
) {
): Promise<ApiResponse<GetPagedReportsResponse>> {
const endpoint = EndpointFactory.getReportsByAppIdEndpoint(
appId,
pagingRequest