diff --git a/apps/vue/src/api/webhooks/model/subscriptionsModel.ts b/apps/vue/src/api/webhooks/model/subscriptionsModel.ts index 5b9590429..52d81ee9f 100644 --- a/apps/vue/src/api/webhooks/model/subscriptionsModel.ts +++ b/apps/vue/src/api/webhooks/model/subscriptionsModel.ts @@ -1,6 +1,7 @@ -export interface WebhookSubscription extends CreationAuditedEntityDto { +export interface WebhookSubscription extends CreationAuditedEntityDto, IHasConcurrencyStamp { tenantId?: string; webhookUri: string; + description?: string; secret: string; isActive: boolean; webhooks: string[]; @@ -9,6 +10,7 @@ export interface WebhookSubscription extends CreationAuditedEntityDto { export interface WebhookSubscriptionCreateOrUpdate { webhookUri: string; + description?: string; secret: string; isActive: boolean; webhooks: string[]; @@ -17,7 +19,7 @@ export interface WebhookSubscriptionCreateOrUpdate { export type CreateWebhookSubscription = WebhookSubscriptionCreateOrUpdate; -export type UpdateWebhookSubscription = WebhookSubscriptionCreateOrUpdate; +export interface UpdateWebhookSubscription extends WebhookSubscriptionCreateOrUpdate , IHasConcurrencyStamp {}; export interface WebhookAvailable { name: string; diff --git a/apps/vue/src/api/webhooks/send-attempts.ts b/apps/vue/src/api/webhooks/send-attempts.ts index 7afcc4518..72d2a837c 100644 --- a/apps/vue/src/api/webhooks/send-attempts.ts +++ b/apps/vue/src/api/webhooks/send-attempts.ts @@ -26,6 +26,18 @@ export const deleteById = (id: string) => { }); } +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, @@ -46,4 +58,16 @@ export const resend = (id: string) => { id: id, }, }); -} \ No newline at end of file +} + +export const resendMany = (keys: string[]) => { + return defAbpHttp.request({ + service: remoteServiceName, + controller: controllerName, + action: 'ResendManyAsync', + uniqueName: 'ResendManyAsyncByInput', + data: { + recordIds: keys, + }, + }); +} diff --git a/apps/vue/src/api/webhooks/subscriptions.ts b/apps/vue/src/api/webhooks/subscriptions.ts index 3bc6ffe94..64a31a03e 100644 --- a/apps/vue/src/api/webhooks/subscriptions.ts +++ b/apps/vue/src/api/webhooks/subscriptions.ts @@ -53,6 +53,18 @@ export const deleteById = (id: string) => { }); }; +export const deleteMany = (keys: string[]) => { + return defAbpHttp.request({ + service: remoteServiceName, + controller: controllerName, + action: 'DeleteManyAsync', + uniqueName: 'DeleteManyAsyncByInput', + data: { + recordIds: keys, + }, + }); +}; + export const getList = (input: WebhookSubscriptionGetListInput) => { return defAbpHttp.request>({ service: remoteServiceName, diff --git a/apps/vue/src/components/Table/src/components/AdvancedSearch.vue b/apps/vue/src/components/Table/src/components/AdvancedSearch.vue index ee557e871..6a481f80a 100644 --- a/apps/vue/src/components/Table/src/components/AdvancedSearch.vue +++ b/apps/vue/src/components/Table/src/components/AdvancedSearch.vue @@ -39,7 +39,17 @@