/** * APIClientService * * API client service for Access Control endpoints. * Provides typed HTTP methods for all access control API operations. * * This is the TypeScript equivalent of the C# APIClientService class. */ import { AccessRequest, AccessResult, AccessControlAPIResponse, BulkAccessRequest, BulkCheckAccessRequest, AccessInheritanceRequest, SuperAdminRequest, BulkConceptAccessRequest, ConceptAccessRequest, ParentAccessInheritanceRequest, ParentAccessInheritanceWithConceptRequest, BulkParentAccessInheritanceWithConceptRequest, BulkParentAccessInheritanceResult, SuperAdminWithConceptRequest, AccessInheritanceWithConceptRequest } from '../../DataStructures/AccessControl/AccessControlModels'; export interface IAPIClientService { assignAccessAsync(request: AccessRequest): Promise>; checkAccessAsync(request: AccessRequest): Promise>; revokeAccessAsync(request: AccessRequest): Promise>; assignAccessBulkAsync(request: BulkAccessRequest): Promise>; assignConceptAccessBulkAsync(request: BulkConceptAccessRequest): Promise>; revokeAccessBulkAsync(request: BulkAccessRequest): Promise>; revokeConceptAccessBulkAsync(request: BulkConceptAccessRequest): Promise>; checkAccessBulkAsync(request: BulkCheckAccessRequest): Promise>; getAccessByIdAsync(accessId: number): Promise>; setAccessInheritanceAsync(request: AccessInheritanceRequest): Promise; getAccessInheritanceStatusAsync(accessId: number, connectionTypeId?: number): Promise; assignSuperAdminAccessAsync(request: SuperAdminRequest): Promise; revokeSuperAdminAccessAsync(request: SuperAdminRequest): Promise; checkSuperAdminStatusAsync(accessId: number): Promise; setParentAccessInheritanceAsync(request: ParentAccessInheritanceRequest): Promise; removeParentAccessInheritanceAsync(accessId: number, parentAccessId?: number): Promise; hasParentAccessInheritanceAsync(accessId: number, parentAccessId?: number): Promise; getParentAccessIdAsync(accessId: number): Promise; setParentAccessInheritanceByConceptAsync(request: ParentAccessInheritanceWithConceptRequest): Promise; setParentAccessInheritanceBulkByConceptAsync(request: BulkParentAccessInheritanceWithConceptRequest): Promise>; removeParentAccessInheritanceByConceptAsync(childConceptId: number, parentConceptId?: number): Promise; removeParentAccessInheritanceBulkByConceptAsync(request: BulkParentAccessInheritanceWithConceptRequest): Promise>; hasParentAccessInheritanceByConceptAsync(childConceptId: number, parentConceptId?: number): Promise; getParentAccessIdByConceptAsync(childConceptId: number): Promise; assignSuperAdminByConceptAsync(request: SuperAdminWithConceptRequest): Promise; revokeSuperAdminByConceptAsync(request: SuperAdminWithConceptRequest): Promise; checkSuperAdminByConceptAsync(conceptId: number): Promise; setAccessInheritanceByConceptAsync(request: AccessInheritanceWithConceptRequest): Promise; getAccessInheritanceStatusByConceptAsync(conceptId: number, connectionTypeId?: number): Promise; } export declare class APIClientService implements IAPIClientService { private static get baseUrl(); private static getAsync; private static postAsync; private static deleteAsync; /** * Assign access to an entity */ assignAccessAsync(request: AccessRequest): Promise>; /** * Check if an entity has access */ checkAccessAsync(request: AccessRequest): Promise>; /** * Revoke access from an entity */ revokeAccessAsync(request: AccessRequest): Promise>; /** * Assign access to multiple targets in bulk */ assignAccessBulkAsync(request: BulkAccessRequest): Promise>; /** * Revoke access from multiple targets in bulk */ revokeAccessBulkAsync(request: BulkAccessRequest): Promise>; /** * Check access for multiple targets in bulk */ checkAccessBulkAsync(request: BulkCheckAccessRequest): Promise>; /** * Get all access entries for a specific accessId */ getAccessByIdAsync(accessId: number): Promise>; /** * Set access inheritance for an access ID */ setAccessInheritanceAsync(request: AccessInheritanceRequest): Promise; /** * Get access inheritance status */ getAccessInheritanceStatusAsync(accessId: number, connectionTypeId?: number): Promise; /** * Assign super admin access */ assignSuperAdminAccessAsync(request: SuperAdminRequest): Promise; /** * Revoke super admin access */ revokeSuperAdminAccessAsync(request: SuperAdminRequest): Promise; /** * Check super admin status */ checkSuperAdminStatusAsync(accessId: number): Promise; /** * Create a new standalone access record for a concept */ assignConceptAccessAsync(request: ConceptAccessRequest): Promise>; /** * Create new standalone access records for multiple concepts in bulk */ assignConceptAccessBulkAsync(request: BulkConceptAccessRequest): Promise>; /** * Revoke access records for multiple concepts in bulk */ revokeConceptAccessBulkAsync(request: BulkConceptAccessRequest): Promise>; /** * Set parent access inheritance link */ setParentAccessInheritanceAsync(request: ParentAccessInheritanceRequest): Promise; /** * Remove parent access inheritance link */ removeParentAccessInheritanceAsync(accessId: number, parentAccessId?: number): Promise; /** * Check if parent access inheritance link exists */ hasParentAccessInheritanceAsync(accessId: number, parentAccessId?: number): Promise; /** * Get the parent access ID for a given access ID */ getParentAccessIdAsync(accessId: number): Promise; /** * Set parent access inheritance by concept IDs (server resolves conceptId → accessId) */ setParentAccessInheritanceByConceptAsync(request: ParentAccessInheritanceWithConceptRequest): Promise; /** * Set parent access inheritance for multiple children with one parent (concept-based) */ setParentAccessInheritanceBulkByConceptAsync(request: BulkParentAccessInheritanceWithConceptRequest): Promise>; /** * Remove parent access inheritance by concept IDs */ removeParentAccessInheritanceByConceptAsync(childConceptId: number, parentConceptId?: number): Promise; /** * Remove parent access inheritance for multiple children (concept-based) */ removeParentAccessInheritanceBulkByConceptAsync(request: BulkParentAccessInheritanceWithConceptRequest): Promise>; /** * Check if parent access inheritance exists by concept IDs */ hasParentAccessInheritanceByConceptAsync(childConceptId: number, parentConceptId?: number): Promise; /** * Get the parent access ID by child concept ID */ getParentAccessIdByConceptAsync(childConceptId: number): Promise; /** * Assign super admin by concept ID */ assignSuperAdminByConceptAsync(request: SuperAdminWithConceptRequest): Promise; /** * Revoke super admin by concept ID */ revokeSuperAdminByConceptAsync(request: SuperAdminWithConceptRequest): Promise; /** * Check super admin status by concept ID */ checkSuperAdminByConceptAsync(conceptId: number): Promise; /** * Set access inheritance by concept ID */ setAccessInheritanceByConceptAsync(request: AccessInheritanceWithConceptRequest): Promise; /** * Get access inheritance status by concept ID */ getAccessInheritanceStatusByConceptAsync(conceptId: number, connectionTypeId?: number): Promise; } export default APIClientService;