File tree Expand file tree Collapse file tree 8 files changed +721
-31
lines changed Expand file tree Collapse file tree 8 files changed +721
-31
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ type WebhookConfigsResponse =
37
37
} ;
38
38
39
39
interface CreateWebhookConfigRequest {
40
- topics : { id : string ; filters : object | null } [ ] ;
40
+ topicIdsWithFilters : { id : string ; filters : object | null } [ ] ;
41
41
destinationUrl : string ;
42
42
description : string ;
43
43
isPaused ?: boolean ;
@@ -76,7 +76,7 @@ type TopicsResponse =
76
76
77
77
interface UpdateWebhookConfigRequest {
78
78
destinationUrl ?: string ;
79
- topics ?: { id : string ; filters : object | null } [ ] ;
79
+ topicIdsWithFilters ?: { id : string ; filters : object | null } [ ] ;
80
80
description ?: string ;
81
81
isPaused ?: boolean ;
82
82
}
Original file line number Diff line number Diff line change
1
+ import type { ThirdwebClient } from "thirdweb" ;
1
2
import type { Topic } from "@/api/webhook-configs" ;
2
3
import { WebhookConfigModal } from "./webhook-config-modal" ;
3
4
@@ -7,15 +8,19 @@ interface CreateWebhookConfigModalProps {
7
8
teamSlug : string ;
8
9
projectSlug : string ;
9
10
topics : Topic [ ] ;
11
+ client ?: ThirdwebClient ;
12
+ supportedChainIds ?: Array < number > ;
10
13
}
11
14
12
15
export function CreateWebhookConfigModal ( props : CreateWebhookConfigModalProps ) {
13
16
return (
14
17
< WebhookConfigModal
18
+ client = { props . client }
15
19
mode = "create"
16
20
onOpenChange = { props . onOpenChange }
17
21
open = { props . open }
18
22
projectSlug = { props . projectSlug }
23
+ supportedChainIds = { props . supportedChainIds }
19
24
teamSlug = { props . teamSlug }
20
25
topics = { props . topics }
21
26
/>
Original file line number Diff line number Diff line change
1
+ import type { ThirdwebClient } from "thirdweb" ;
1
2
import type { Topic , WebhookConfig } from "@/api/webhook-configs" ;
2
3
import { WebhookConfigModal } from "./webhook-config-modal" ;
3
4
@@ -8,15 +9,19 @@ interface EditWebhookConfigModalProps {
8
9
projectSlug : string ;
9
10
topics : Topic [ ] ;
10
11
webhookConfig : WebhookConfig ;
12
+ client ?: ThirdwebClient ;
13
+ supportedChainIds ?: Array < number > ;
11
14
}
12
15
13
16
export function EditWebhookConfigModal ( props : EditWebhookConfigModalProps ) {
14
17
return (
15
18
< WebhookConfigModal
19
+ client = { props . client }
16
20
mode = "edit"
17
21
onOpenChange = { props . onOpenChange }
18
22
open = { props . open }
19
23
projectSlug = { props . projectSlug }
24
+ supportedChainIds = { props . supportedChainIds }
20
25
teamSlug = { props . teamSlug }
21
26
topics = { props . topics }
22
27
webhookConfig = { props . webhookConfig }
Original file line number Diff line number Diff line change 1
1
"use client" ;
2
2
3
3
import { redirect } from "next/navigation" ;
4
+ import type { ThirdwebClient } from "thirdweb" ;
4
5
import type { WebhookSummaryStats } from "@/types/analytics" ;
5
6
import type {
6
7
Topic ,
@@ -16,6 +17,8 @@ interface WebhooksOverviewProps {
16
17
webhookConfigs : WebhookConfig [ ] ;
17
18
topics : Topic [ ] ;
18
19
metricsMap : Map < string , WebhookSummaryStats | null > ;
20
+ client ?: ThirdwebClient ;
21
+ supportedChainIds ?: Array < number > ;
19
22
}
20
23
21
24
export function WebhooksOverview ( {
@@ -26,6 +29,8 @@ export function WebhooksOverview({
26
29
webhookConfigs,
27
30
topics,
28
31
metricsMap,
32
+ client,
33
+ supportedChainIds,
29
34
} : WebhooksOverviewProps ) {
30
35
// Feature is enabled (matches server component behavior)
31
36
const isFeatureEnabled = true ;
@@ -38,9 +43,11 @@ export function WebhooksOverview({
38
43
// Show full webhook functionality
39
44
return (
40
45
< WebhookConfigsTable
46
+ client = { client }
41
47
metricsMap = { metricsMap }
42
48
projectId = { projectId }
43
49
projectSlug = { projectSlug }
50
+ supportedChainIds = { supportedChainIds }
44
51
teamId = { teamId }
45
52
teamSlug = { teamSlug }
46
53
topics = { topics }
You can’t perform that action at this time.
0 commit comments