@equinor/fusion
Advanced tools
Comparing version 2.4.6 to 2.4.7
@@ -7,2 +7,3 @@ import Report from './models/report/Report'; | ||
import BaseApiClient from './BaseApiClient'; | ||
import { ContextTypes } from './models/context'; | ||
export default class ReportClient extends BaseApiClient { | ||
@@ -27,2 +28,3 @@ protected getBaseUrl(): string; | ||
deleteReport(reportId: string): Promise<import("../HttpClient").HttpResponse<void>>; | ||
checkContextAccess(reportId: string, contextExternalId: string, contextType: ContextTypes): Promise<import("../HttpClient").HttpResponse<void>>; | ||
} |
@@ -74,2 +74,6 @@ import BaseApiClient from './BaseApiClient'; | ||
} | ||
async checkContextAccess(reportId, contextExternalId, contextType) { | ||
const url = this.resourceCollections.report.checkAccess(reportId, contextExternalId, contextType); | ||
return await this.httpClient.optionsAsync(url); | ||
} | ||
} |
import BaseResourceCollection from './BaseResourceCollection'; | ||
import { ContextTypes } from '../apiClients/models/context'; | ||
export default class ReportResourceCollection extends BaseResourceCollection { | ||
@@ -18,2 +19,3 @@ protected getBaseUrl(): string; | ||
auditLog(reportId: string): string; | ||
checkAccess(reportId: string, contextExternalId: string, contextType: ContextTypes): string; | ||
} |
@@ -49,2 +49,5 @@ import BaseResourceCollection from './BaseResourceCollection'; | ||
} | ||
checkAccess(reportId, contextExternalId, contextType) { | ||
return combineUrls(this.getBaseUrl(), 'reports', reportId, 'contexts', contextExternalId, 'contexttypes', contextType, 'checkaccess'); | ||
} | ||
} |
@@ -30,3 +30,3 @@ export { IAuthContainer, FusionAuthLoginError, default as AuthContainer, } from './auth/AuthContainer'; | ||
export { default as OrgProject, BasePosition, Position, PositionInstance, AssignedPerson, PositionLocation, FusionProject, OrgProjectType, CreateOrgProject, OrgProjectDates, Contract, PublishDetails, PositionReportPath, RoleDescription, OrgSnapshot, OrgSnapshotApproval, ApproveSnapshotRequest, CreateSnapshotRequest, CreateTransientSnapshotRequest, OrgSnapshotStatus, OrgSnapshotStatusProgress, } from './http/apiClients/models/org/OrgProject'; | ||
export { default as PersonDetails, PersonBasePosition, PersonContract, PersonPosition, PersonProject, PersonRole, PersonRoleScope, PersonAccountType, PersonCompany, PersonPresence, PersonPresenceAvailability, } from './http/apiClients/models/people/PersonDetails'; | ||
export { default as PersonDetails, PersonBasePosition, PersonContract, PersonPosition, PersonProject, PersonRole, PersonRoleScope, PersonAccountType, PersonCompany, PersonNotificationSettings, PersonPresence, PersonPresenceAvailability, } from './http/apiClients/models/people/PersonDetails'; | ||
export { default as RoleDefinition } from './http/apiClients/models/people/RoleDefinition'; | ||
@@ -33,0 +33,0 @@ export { default as GroupRoleMapping } from './http/apiClients/models/people/GroupRoleMapping'; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "2.4.6"; | ||
declare const _default: "2.4.7"; | ||
export default _default; |
@@ -1,1 +0,1 @@ | ||
export default '2.4.6'; | ||
export default '2.4.7'; |
{ | ||
"name": "@equinor/fusion", | ||
"version": "2.4.6", | ||
"version": "2.4.7", | ||
"description": "Everything a Fusion app needs to communicate with the core", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
338334
7954