|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from . import ( |
6 | | - filter, |
7 | | - shared, |
8 | | - tenants, |
9 | | - audience, |
10 | | - nested_filter_config, |
11 | | - audience_list_response, |
12 | | - audience_update_response, |
13 | | - notification_list_response, |
14 | | -) |
| 5 | +from . import shared, tenants, audience, audience_list_response, audience_update_response, notification_list_response |
15 | 6 | from .. import _compat |
16 | 7 | from .logo import Logo as Logo |
17 | 8 | from .brand import Brand as Brand |
18 | 9 | from .check import Check as Check |
19 | 10 | from .icons import Icons as Icons |
20 | | -from .filter import Filter as Filter |
21 | 11 | from .shared import ( |
22 | 12 | Utm as Utm, |
23 | 13 | Expo as Expo, |
|
35 | 25 | ListFilter as ListFilter, |
36 | 26 | Preference as Preference, |
37 | 27 | UserProfile as UserProfile, |
| 28 | + FilterConfig as FilterConfig, |
38 | 29 | ElementalNode as ElementalNode, |
39 | 30 | ListRecipient as ListRecipient, |
40 | 31 | SendToChannel as SendToChannel, |
|
65 | 56 | WebhookProfileType as WebhookProfileType, |
66 | 57 | SendToMsTeamsUserID as SendToMsTeamsUserID, |
67 | 58 | SlackBaseProperties as SlackBaseProperties, |
| 59 | + AudienceFilterConfig as AudienceFilterConfig, |
68 | 60 | ElementalChannelNode as ElementalChannelNode, |
69 | 61 | ListPatternRecipient as ListPatternRecipient, |
70 | 62 | RecipientPreferences as RecipientPreferences, |
|
97 | 89 | from .brand_colors import BrandColors as BrandColors |
98 | 90 | from .email_footer import EmailFooter as EmailFooter |
99 | 91 | from .email_header import EmailHeader as EmailHeader |
100 | | -from .filter_param import FilterParam as FilterParam |
101 | 92 | from .brand_snippet import BrandSnippet as BrandSnippet |
102 | | -from .filter_config import FilterConfig as FilterConfig |
103 | 93 | from .brand_settings import BrandSettings as BrandSettings |
104 | 94 | from .brand_snippets import BrandSnippets as BrandSnippets |
105 | 95 | from .brand_template import BrandTemplate as BrandTemplate |
|
123 | 113 | from .brand_snippet_param import BrandSnippetParam as BrandSnippetParam |
124 | 114 | from .brand_update_params import BrandUpdateParams as BrandUpdateParams |
125 | 115 | from .default_preferences import DefaultPreferences as DefaultPreferences |
126 | | -from .filter_config_param import FilterConfigParam as FilterConfigParam |
127 | 116 | from .message_list_params import MessageListParams as MessageListParams |
128 | 117 | from .send_message_params import SendMessageParams as SendMessageParams |
129 | 118 | from .audience_list_params import AudienceListParams as AudienceListParams |
|
132 | 121 | from .brand_snippets_param import BrandSnippetsParam as BrandSnippetsParam |
133 | 122 | from .brand_template_param import BrandTemplateParam as BrandTemplateParam |
134 | 123 | from .inbound_bulk_message import InboundBulkMessage as InboundBulkMessage |
135 | | -from .nested_filter_config import NestedFilterConfig as NestedFilterConfig |
136 | | -from .single_filter_config import SingleFilterConfig as SingleFilterConfig |
137 | 124 | from .tenant_list_response import TenantListResponse as TenantListResponse |
138 | 125 | from .tenant_update_params import TenantUpdateParams as TenantUpdateParams |
139 | 126 | from .brand_settings_in_app import BrandSettingsInApp as BrandSettingsInApp |
|
176 | 163 | from .bulk_retrieve_job_response import BulkRetrieveJobResponse as BulkRetrieveJobResponse |
177 | 164 | from .inbound_bulk_message_param import InboundBulkMessageParam as InboundBulkMessageParam |
178 | 165 | from .inbound_track_event_params import InboundTrackEventParams as InboundTrackEventParams |
179 | | -from .nested_filter_config_param import NestedFilterConfigParam as NestedFilterConfigParam |
180 | 166 | from .notification_list_response import NotificationListResponse as NotificationListResponse |
181 | | -from .single_filter_config_param import SingleFilterConfigParam as SingleFilterConfigParam |
182 | 167 | from .tenant_list_users_response import TenantListUsersResponse as TenantListUsersResponse |
183 | 168 | from .brand_settings_in_app_param import BrandSettingsInAppParam as BrandSettingsInAppParam |
184 | 169 | from .audience_list_members_params import AudienceListMembersParams as AudienceListMembersParams |
|
198 | 183 | # See: https://github.com/pydantic/pydantic/issues/11250 for more context. |
199 | 184 | if _compat.PYDANTIC_V1: |
200 | 185 | audience.Audience.update_forward_refs() # type: ignore |
201 | | - filter.Filter.update_forward_refs() # type: ignore |
202 | | - nested_filter_config.NestedFilterConfig.update_forward_refs() # type: ignore |
203 | 186 | audience_update_response.AudienceUpdateResponse.update_forward_refs() # type: ignore |
204 | 187 | audience_list_response.AudienceListResponse.update_forward_refs() # type: ignore |
205 | 188 | notification_list_response.NotificationListResponse.update_forward_refs() # type: ignore |
206 | 189 | tenants.template_list_response.TemplateListResponse.update_forward_refs() # type: ignore |
| 190 | + shared.audience_filter_config.AudienceFilterConfig.update_forward_refs() # type: ignore |
| 191 | + shared.filter_config.FilterConfig.update_forward_refs() # type: ignore |
207 | 192 | shared.message_routing.MessageRouting.update_forward_refs() # type: ignore |
208 | 193 | else: |
209 | 194 | audience.Audience.model_rebuild(_parent_namespace_depth=0) |
210 | | - filter.Filter.model_rebuild(_parent_namespace_depth=0) |
211 | | - nested_filter_config.NestedFilterConfig.model_rebuild(_parent_namespace_depth=0) |
212 | 195 | audience_update_response.AudienceUpdateResponse.model_rebuild(_parent_namespace_depth=0) |
213 | 196 | audience_list_response.AudienceListResponse.model_rebuild(_parent_namespace_depth=0) |
214 | 197 | notification_list_response.NotificationListResponse.model_rebuild(_parent_namespace_depth=0) |
215 | 198 | tenants.template_list_response.TemplateListResponse.model_rebuild(_parent_namespace_depth=0) |
| 199 | + shared.audience_filter_config.AudienceFilterConfig.model_rebuild(_parent_namespace_depth=0) |
| 200 | + shared.filter_config.FilterConfig.model_rebuild(_parent_namespace_depth=0) |
216 | 201 | shared.message_routing.MessageRouting.model_rebuild(_parent_namespace_depth=0) |
0 commit comments