MSP-3107 add accessListService

This commit is contained in:
veselovnk committed 2024-04-17 16:49:21 +03:00
1 parent 8a65a03a13
commit e924ae9ad2
4 files changed
+94 -1

No files matched your search

+48
View File
@@ -0,0 +1,48 @@
export interface AccessListMethodType {
method: string
value: boolean
}
export interface AccessListSetListRequestType {
appId: number
methods: AccessListMethodType[]
removeOld?: boolean
}
export interface AccessListSetListSetOneRequestType {
appId: number
method: string
value: boolean
}
export interface EndpointType {
extra: Record<string, any>
inner: boolean
path: string
userAuthRequired: boolean
}
export type AddressType = {
ip: string
port: string
}
export type RequiredModuleType = {
name: string
required: boolean
}
export type RouteType = {
address: AddressType
endpoints: EndpointType[]
libVersion: string
moduleName: string
requiredModules: RequiredModuleType[]
version: string
}
export interface RouteApiResponseType {
originalResponse: RouteType[]
moduleEndpoints: Record<string, EndpointType[]>
allRouteMap: Record<string, EndpointType>
}