UNPKG

@itwin/insights-client

Version:

Insights client for the iTwin platform

29 lines 1.2 kB
/*--------------------------------------------------------------------------------------------- * Copyright (c) Bentley Systems, Incorporated. All rights reserved. * See LICENSE.md in the project root for license terms and full copyright notice. *--------------------------------------------------------------------------------------------*/ import { GROUPING_AND_MAPPING_BASE_PATH, OperationsBase } from "../../common/OperationsBase"; export class AuditTrailClient extends OperationsBase { constructor(basePath) { super(basePath ?? GROUPING_AND_MAPPING_BASE_PATH); } async getAuditTrail(accessToken, iModelId, path, after, before, top) { let url = `${this.basePath}/audit?iModelId=${iModelId}`; if (path) { url += `&path=${path}`; } if (after) { url += `&after=${after}`; } if (before) { url += `&before=${before}`; } if (top) { url += `&$top=${top}`; } const request = this.createRequest("GET", accessToken); const response = await this.fetchJSON(url, request); return response; } } //# sourceMappingURL=AuditTrailClient.js.map