|
50 | 50 | automation, |
51 | 51 | conversations, |
52 | 52 | business_units, |
| 53 | + webhooks_journal, |
53 | 54 | communication_preferences, |
54 | 55 | ) |
55 | 56 | from .resources.cms.cms import CmsResource, AsyncCmsResource |
|
66 | 67 | from .resources.automation.automation import AutomationResource, AsyncAutomationResource |
67 | 68 | from .resources.conversations.conversations import ConversationsResource, AsyncConversationsResource |
68 | 69 | from .resources.business_units.business_units import BusinessUnitsResource, AsyncBusinessUnitsResource |
| 70 | + from .resources.webhooks_journal.webhooks_journal import WebhooksJournalResource, AsyncWebhooksJournalResource |
69 | 71 | from .resources.communication_preferences.communication_preferences import ( |
70 | 72 | CommunicationPreferencesResource, |
71 | 73 | AsyncCommunicationPreferencesResource, |
@@ -223,6 +225,12 @@ def webhooks(self) -> WebhooksResource: |
223 | 225 |
|
224 | 226 | return WebhooksResource(self) |
225 | 227 |
|
| 228 | + @cached_property |
| 229 | + def webhooks_journal(self) -> WebhooksJournalResource: |
| 230 | + from .resources.webhooks_journal import WebhooksJournalResource |
| 231 | + |
| 232 | + return WebhooksJournalResource(self) |
| 233 | + |
226 | 234 | @cached_property |
227 | 235 | def with_raw_response(self) -> HubSpotWithRawResponse: |
228 | 236 | return HubSpotWithRawResponse(self) |
@@ -498,6 +506,12 @@ def webhooks(self) -> AsyncWebhooksResource: |
498 | 506 |
|
499 | 507 | return AsyncWebhooksResource(self) |
500 | 508 |
|
| 509 | + @cached_property |
| 510 | + def webhooks_journal(self) -> AsyncWebhooksJournalResource: |
| 511 | + from .resources.webhooks_journal import AsyncWebhooksJournalResource |
| 512 | + |
| 513 | + return AsyncWebhooksJournalResource(self) |
| 514 | + |
501 | 515 | @cached_property |
502 | 516 | def with_raw_response(self) -> AsyncHubSpotWithRawResponse: |
503 | 517 | return AsyncHubSpotWithRawResponse(self) |
@@ -720,6 +734,12 @@ def webhooks(self) -> webhooks.WebhooksResourceWithRawResponse: |
720 | 734 |
|
721 | 735 | return WebhooksResourceWithRawResponse(self._client.webhooks) |
722 | 736 |
|
| 737 | + @cached_property |
| 738 | + def webhooks_journal(self) -> webhooks_journal.WebhooksJournalResourceWithRawResponse: |
| 739 | + from .resources.webhooks_journal import WebhooksJournalResourceWithRawResponse |
| 740 | + |
| 741 | + return WebhooksJournalResourceWithRawResponse(self._client.webhooks_journal) |
| 742 | + |
723 | 743 |
|
724 | 744 | class AsyncHubSpotWithRawResponse: |
725 | 745 | _client: AsyncHubSpot |
@@ -819,6 +839,12 @@ def webhooks(self) -> webhooks.AsyncWebhooksResourceWithRawResponse: |
819 | 839 |
|
820 | 840 | return AsyncWebhooksResourceWithRawResponse(self._client.webhooks) |
821 | 841 |
|
| 842 | + @cached_property |
| 843 | + def webhooks_journal(self) -> webhooks_journal.AsyncWebhooksJournalResourceWithRawResponse: |
| 844 | + from .resources.webhooks_journal import AsyncWebhooksJournalResourceWithRawResponse |
| 845 | + |
| 846 | + return AsyncWebhooksJournalResourceWithRawResponse(self._client.webhooks_journal) |
| 847 | + |
822 | 848 |
|
823 | 849 | class HubSpotWithStreamedResponse: |
824 | 850 | _client: HubSpot |
@@ -918,6 +944,12 @@ def webhooks(self) -> webhooks.WebhooksResourceWithStreamingResponse: |
918 | 944 |
|
919 | 945 | return WebhooksResourceWithStreamingResponse(self._client.webhooks) |
920 | 946 |
|
| 947 | + @cached_property |
| 948 | + def webhooks_journal(self) -> webhooks_journal.WebhooksJournalResourceWithStreamingResponse: |
| 949 | + from .resources.webhooks_journal import WebhooksJournalResourceWithStreamingResponse |
| 950 | + |
| 951 | + return WebhooksJournalResourceWithStreamingResponse(self._client.webhooks_journal) |
| 952 | + |
921 | 953 |
|
922 | 954 | class AsyncHubSpotWithStreamedResponse: |
923 | 955 | _client: AsyncHubSpot |
@@ -1017,6 +1049,12 @@ def webhooks(self) -> webhooks.AsyncWebhooksResourceWithStreamingResponse: |
1017 | 1049 |
|
1018 | 1050 | return AsyncWebhooksResourceWithStreamingResponse(self._client.webhooks) |
1019 | 1051 |
|
| 1052 | + @cached_property |
| 1053 | + def webhooks_journal(self) -> webhooks_journal.AsyncWebhooksJournalResourceWithStreamingResponse: |
| 1054 | + from .resources.webhooks_journal import AsyncWebhooksJournalResourceWithStreamingResponse |
| 1055 | + |
| 1056 | + return AsyncWebhooksJournalResourceWithStreamingResponse(self._client.webhooks_journal) |
| 1057 | + |
1020 | 1058 |
|
1021 | 1059 | Client = HubSpot |
1022 | 1060 |
|
|
0 commit comments