import { defAbpHttp } from '/@/utils/http/abp'; import { WebhookSendAttempt, WebhookSendAttemptGetListInput } from './model/sendAttemptsModel'; const remoteServiceName = 'WebhooksManagement'; const controllerName = 'WebhookSendRecord'; export const getById = (id: string) => { return defAbpHttp.request({ service: remoteServiceName, controller: controllerName, action: 'GetAsync', params: { id: id, }, }); }; export const deleteById = (id: string) => { return defAbpHttp.request({ service: remoteServiceName, controller: controllerName, action: 'DeleteAsync', params: { id: id, }, }); } export const deleteMany = (keys: string[]) => { return defAbpHttp.request({ service: remoteServiceName, controller: controllerName, action: 'DeleteManyAsync', uniqueName: 'DeleteManyAsyncByInput', data: { recordIds: keys, }, }); } export const getList = (input: WebhookSendAttemptGetListInput) => { return defAbpHttp.request>({ service: remoteServiceName, controller: controllerName, action: 'GetListAsync', params: { input: input, }, }); }; export const resend = (id: string) => { return defAbpHttp.request({ service: remoteServiceName, controller: controllerName, action: 'ResendAsync', params: { id: id, }, }); } export const resendMany = (keys: string[]) => { return defAbpHttp.request({ service: remoteServiceName, controller: controllerName, action: 'ResendManyAsync', uniqueName: 'ResendManyAsyncByInput', data: { recordIds: keys, }, }); }