diff --git a/package-lock.json b/package-lock.json index 4f66315..23989a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1924,9 +1924,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001585", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001585.tgz", - "integrity": "sha512-yr2BWR1yLXQ8fMpdS/4ZZXpseBgE7o4g41x3a6AJOqZuOi+iE/WdJYAuZ6Y95i4Ohd2Y+9MzIWRR+uGABH4s3Q==", + "version": "1.0.30001667", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001667.tgz", + "integrity": "sha512-7LTwJjcRkzKFmtqGsibMeuXmvFDfZq/nzIjnmgCGzKKRVzjD72selLDK1oPF/Oxzmt4fNcPvTDvGqSDG4tCALw==", "dev": true, "funding": [ { @@ -1941,7 +1941,8 @@ "type": "github", "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/chalk": { "version": "4.1.2", diff --git a/src/lib/api/orchestrator.ts b/src/lib/api/orchestrator.ts index 0ba7fd0..3565cf7 100644 --- a/src/lib/api/orchestrator.ts +++ b/src/lib/api/orchestrator.ts @@ -142,7 +142,7 @@ export interface ListCertificationTargetsResponse { targets: CertificationTarget[]; } -export interface ListTargetsOfEvaluationResponse { +export interface ListAuditScopesResponse { auditScope: AuditScope[]; } @@ -476,7 +476,7 @@ export async function removeControlFromScope( * * @returns an array of {@link AuditScope}s. */ -export async function listTargetsOfEvaluation( +export async function listAuditScopes( serviceId: string, fetch = window.fetch ): Promise { @@ -490,7 +490,7 @@ export async function listTargetsOfEvaluation( }) .then(throwError) .then((res) => res.json()) - .then((response: ListTargetsOfEvaluationResponse) => { + .then((response: ListAuditScopesResponse) => { return response.auditScope; }); } diff --git a/src/routes/(app)/cloud/[id]/compliance/+layout.ts b/src/routes/(app)/cloud/[id]/compliance/+layout.ts index d2e8464..49d35c6 100644 --- a/src/routes/(app)/cloud/[id]/compliance/+layout.ts +++ b/src/routes/(app)/cloud/[id]/compliance/+layout.ts @@ -1,5 +1,5 @@ import { listEvaluationResults } from '$lib/api/evaluation'; -import { listTargetsOfEvaluation } from '$lib/api/orchestrator'; +import { listAuditScopes } from '$lib/api/orchestrator'; import { error } from '@sveltejs/kit'; import type { LayoutLoad } from './$types'; @@ -8,7 +8,7 @@ export const load = (async ({ fetch, params, parent }) => { throw error(405, 'Required parameter missing'); } - const targets = await listTargetsOfEvaluation(params.id, fetch); + const targets = await listAuditScopes(params.id, fetch); const data = await parent(); const leftOverCatalogs = data.catalogs.filter((c) => {