import { Payload } from "../../client"; import { ServiceClient } from "../../service-client"; type Blacklist = { id: string createdAt: Date type: string value: string active: boolean registerAttempts: number } export class Acl extends ServiceClient { protected getServiceName(): string { return 'com.appconda.service.acl'; } public async getBlacklist( filters?: any, pagination?: { page: number; pageSize: number } ): Promise<{ items: Blacklist[]; pagination: any }> { const payload: Payload = {}; return await this.actionCall('GetBlackList', payload); } public async addToBlackList(type: string, value: string ): Promise { const payload: Payload = {}; payload['type'] = type; payload['value'] = value; return await this.actionCall('AddToBlackList', payload); } public async deleteFromBlackList(type: string, value: string ): Promise { const payload: Payload = {}; payload['type'] = type; payload['value'] = value; return await this.actionCall('DeleteFromBlackList', payload); } public async getAllTenantIpAddresses(): Promise<{ items: any[]; pagination: any }> { const payload: Payload = {}; return await this.actionCall('GetAllTenantIpAddresses', payload); } }