From 58c4632a4cf9f36b82df561ef549554d3db34b04 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 25 Dec 2023 15:22:20 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Fix=20release=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 2 +- {listmonk_client => listmonk}/__init__.py | 0 {listmonk_client => listmonk}/api/__init__.py | 0 .../api/admin_api.py | 0 .../api/bounces_api.py | 0 .../api/campaigns_api.py | 0 .../api/import_api.py | 0 .../api/lists_api.py | 0 {listmonk_client => listmonk}/api/logs_api.py | 0 .../api/maintenance_api.py | 0 .../api/media_api.py | 0 .../api/miscellaneous_api.py | 0 .../api/public_api.py | 0 .../api/settings_api.py | 0 .../api/subscribers_api.py | 0 .../api/templates_api.py | 0 .../api/transactional_api.py | 0 {listmonk_client => listmonk}/api_client.py | 0 {listmonk_client => listmonk}/api_response.py | 0 .../configuration.py | 4 +- {listmonk_client => listmonk}/exceptions.py | 0 .../models/__init__.py | 0 .../models/bounce.py | 0 .../models/bounce_results_inner.py | 0 .../models/bounce_results_inner_campaign.py | 0 .../models/campaign.py | 0 .../models/campaign_analytics_count.py | 0 .../models/campaign_content_request.py | 0 .../models/campaign_request.py | 0 .../models/campaign_request_send_at.py | 0 .../models/campaign_stats.py | 0 .../models/campaign_update.py | 0 .../models/create_campaign200_response.py | 0 .../models/create_list200_response.py | 0 .../models/create_subscriber200_response.py | 0 .../models/dashboard_chart.py | 0 .../dashboard_chart_link_clicks_inner.py | 0 .../models/dashboard_count.py | 0 .../models/dashboard_count_data.py | 0 .../models/dashboard_count_data_campaigns.py | 0 ...ashboard_count_data_campaigns_by_status.py | 0 .../models/dashboard_count_data_lists.py | 0 .../dashboard_count_data_subscribers.py | 0 .../delete_gc_subscribers200_response.py | 0 .../delete_gc_subscribers200_response_data.py | 0 .../models/get_bounce_by_id200_response.py | 0 .../models/get_bounces200_response.py | 0 .../models/get_bounces200_response_data.py | 0 .../get_campaign_analytics200_response.py | 0 .../models/get_campaign_by_id200_response.py | 0 .../models/get_campaigns200_response.py | 0 .../models/get_campaigns200_response_data.py | 0 .../get_dashboard_charts200_response.py | 0 .../get_dashboard_counts200_response.py | 0 .../models/get_health_check200_response.py | 0 .../models/get_i18n_lang200_response.py | 0 ...get_import_subscriber_stats200_response.py | 0 .../get_import_subscribers200_response.py | 0 .../models/get_lists200_response.py | 0 .../models/get_lists200_response_data.py | 0 .../models/get_logs200_response.py | 0 .../models/get_media200_response.py | 0 .../get_public_lists200_response_inner.py | 0 .../get_running_campaign_stats200_response.py | 0 .../models/get_server_config200_response.py | 0 .../models/get_settings200_response.py | 0 ...et_subscriber_bounces_by_id200_response.py | 0 .../models/get_subscribers200_response.py | 0 .../get_subscribers200_response_data.py | 0 .../models/get_template_by_id200_response.py | 0 .../models/get_templates200_response.py | 0 .../handle_public_subscription200_response.py | 0 .../handle_public_subscription_request.py | 0 .../models/import_status.py | 0 .../models/import_status_data.py | 0 .../models/import_subscribers_request.py | 0 .../models/language_pack.py | 0 .../models/language_pack_data.py | 0 {listmonk_client => listmonk}/models/list.py | 0 .../models/mail_box_bounces.py | 0 .../models/media_file_object.py | 0 .../models/new_list.py | 0 .../models/new_subscriber.py | 0 .../models/new_subscriber_attribs.py | 0 .../models/new_subscriber_attribs_stack.py | 0 .../models/server_config.py | 0 .../models/server_config_data.py | 0 .../models/server_config_data_langs_inner.py | 0 .../models/settings.py | 0 .../models/smtp_settings.py | 0 .../models/smtp_test.py | 0 .../models/subscriber.py | 0 .../models/subscriber_data.py | 0 .../models/subscriber_lists_inner.py | 0 .../models/subscriber_profile.py | 0 .../models/subscriber_profile_attribs.py | 0 .../models/subscriber_query_request.py | 0 .../models/subscriptions.py | 0 .../models/template.py | 0 .../models/transactional_message.py | 0 .../update_campaign_archive_by_id_request.py | 0 .../update_campaign_status_by_id_request.py | 0 .../models/update_subscriber.py | 0 .../models/upload_media200_response.py | 0 {listmonk_client => listmonk}/py.typed | 0 {listmonk_client => listmonk}/rest.py | 0 pyproject.toml | 14 +++++- setup.py | 4 +- templates/CHANGELOG.md.j2 | 43 +++++++++++++++++++ test/test_bounce.py | 6 +-- test/test_bounce_results_inner.py | 4 +- test/test_campaign.py | 2 +- test/test_campaign_content_request.py | 2 +- test/test_campaign_request.py | 2 +- test/test_create_campaign200_response.py | 6 +-- test/test_create_list200_response.py | 2 +- test/test_create_subscriber200_response.py | 6 +-- test/test_dashboard_chart.py | 4 +- test/test_dashboard_count.py | 12 +++--- test/test_dashboard_count_data.py | 10 ++--- test/test_dashboard_count_data_campaigns.py | 2 +- test/test_dashboard_count_data_subscribers.py | 2 +- .../test_delete_gc_subscribers200_response.py | 2 +- test/test_get_bounce_by_id200_response.py | 8 ++-- test/test_get_bounces200_response.py | 4 +- test/test_get_bounces200_response_data.py | 8 ++-- ...test_get_campaign_analytics200_response.py | 2 +- test/test_get_campaign_by_id200_response.py | 4 +- test/test_get_campaigns200_response.py | 6 +-- test/test_get_campaigns200_response_data.py | 4 +- test/test_get_dashboard_charts200_response.py | 6 +-- test/test_get_dashboard_counts200_response.py | 14 +++--- test/test_get_i18n_lang200_response.py | 4 +- ...test_get_import_subscribers200_response.py | 4 +- test/test_get_lists200_response.py | 4 +- test/test_get_lists200_response_data.py | 2 +- test/test_get_media200_response.py | 2 +- ..._get_running_campaign_stats200_response.py | 2 +- test/test_get_server_config200_response.py | 6 +-- test/test_get_settings200_response.py | 6 +-- ...et_subscriber_bounces_by_id200_response.py | 8 ++-- test/test_get_subscribers200_response.py | 8 ++-- test/test_get_subscribers200_response_data.py | 6 +-- test/test_get_template_by_id200_response.py | 2 +- test/test_get_templates200_response.py | 2 +- test/test_import_status.py | 2 +- test/test_language_pack.py | 2 +- test/test_new_subscriber.py | 4 +- test/test_new_subscriber_attribs.py | 2 +- test/test_server_config.py | 4 +- test/test_server_config_data.py | 2 +- test/test_settings.py | 4 +- test/test_subscriber.py | 4 +- test/test_subscriber_data.py | 6 +-- test/test_subscriber_profile.py | 2 +- test/test_update_subscriber.py | 4 +- test/test_upload_media200_response.py | 2 +- 157 files changed, 166 insertions(+), 113 deletions(-) rename {listmonk_client => listmonk}/__init__.py (100%) rename {listmonk_client => listmonk}/api/__init__.py (100%) rename {listmonk_client => listmonk}/api/admin_api.py (100%) rename {listmonk_client => listmonk}/api/bounces_api.py (100%) rename {listmonk_client => listmonk}/api/campaigns_api.py (100%) rename {listmonk_client => listmonk}/api/import_api.py (100%) rename {listmonk_client => listmonk}/api/lists_api.py (100%) rename {listmonk_client => listmonk}/api/logs_api.py (100%) rename {listmonk_client => listmonk}/api/maintenance_api.py (100%) rename {listmonk_client => listmonk}/api/media_api.py (100%) rename {listmonk_client => listmonk}/api/miscellaneous_api.py (100%) rename {listmonk_client => listmonk}/api/public_api.py (100%) rename {listmonk_client => listmonk}/api/settings_api.py (100%) rename {listmonk_client => listmonk}/api/subscribers_api.py (100%) rename {listmonk_client => listmonk}/api/templates_api.py (100%) rename {listmonk_client => listmonk}/api/transactional_api.py (100%) rename {listmonk_client => listmonk}/api_client.py (100%) rename {listmonk_client => listmonk}/api_response.py (100%) rename {listmonk_client => listmonk}/configuration.py (99%) rename {listmonk_client => listmonk}/exceptions.py (100%) rename {listmonk_client => listmonk}/models/__init__.py (100%) rename {listmonk_client => listmonk}/models/bounce.py (100%) rename {listmonk_client => listmonk}/models/bounce_results_inner.py (100%) rename {listmonk_client => listmonk}/models/bounce_results_inner_campaign.py (100%) rename {listmonk_client => listmonk}/models/campaign.py (100%) rename {listmonk_client => listmonk}/models/campaign_analytics_count.py (100%) rename {listmonk_client => listmonk}/models/campaign_content_request.py (100%) rename {listmonk_client => listmonk}/models/campaign_request.py (100%) rename {listmonk_client => listmonk}/models/campaign_request_send_at.py (100%) rename {listmonk_client => listmonk}/models/campaign_stats.py (100%) rename {listmonk_client => listmonk}/models/campaign_update.py (100%) rename {listmonk_client => listmonk}/models/create_campaign200_response.py (100%) rename {listmonk_client => listmonk}/models/create_list200_response.py (100%) rename {listmonk_client => listmonk}/models/create_subscriber200_response.py (100%) rename {listmonk_client => listmonk}/models/dashboard_chart.py (100%) rename {listmonk_client => listmonk}/models/dashboard_chart_link_clicks_inner.py (100%) rename {listmonk_client => listmonk}/models/dashboard_count.py (100%) rename {listmonk_client => listmonk}/models/dashboard_count_data.py (100%) rename {listmonk_client => listmonk}/models/dashboard_count_data_campaigns.py (100%) rename {listmonk_client => listmonk}/models/dashboard_count_data_campaigns_by_status.py (100%) rename {listmonk_client => listmonk}/models/dashboard_count_data_lists.py (100%) rename {listmonk_client => listmonk}/models/dashboard_count_data_subscribers.py (100%) rename {listmonk_client => listmonk}/models/delete_gc_subscribers200_response.py (100%) rename {listmonk_client => listmonk}/models/delete_gc_subscribers200_response_data.py (100%) rename {listmonk_client => listmonk}/models/get_bounce_by_id200_response.py (100%) rename {listmonk_client => listmonk}/models/get_bounces200_response.py (100%) rename {listmonk_client => listmonk}/models/get_bounces200_response_data.py (100%) rename {listmonk_client => listmonk}/models/get_campaign_analytics200_response.py (100%) rename {listmonk_client => listmonk}/models/get_campaign_by_id200_response.py (100%) rename {listmonk_client => listmonk}/models/get_campaigns200_response.py (100%) rename {listmonk_client => listmonk}/models/get_campaigns200_response_data.py (100%) rename {listmonk_client => listmonk}/models/get_dashboard_charts200_response.py (100%) rename {listmonk_client => listmonk}/models/get_dashboard_counts200_response.py (100%) rename {listmonk_client => listmonk}/models/get_health_check200_response.py (100%) rename {listmonk_client => listmonk}/models/get_i18n_lang200_response.py (100%) rename {listmonk_client => listmonk}/models/get_import_subscriber_stats200_response.py (100%) rename {listmonk_client => listmonk}/models/get_import_subscribers200_response.py (100%) rename {listmonk_client => listmonk}/models/get_lists200_response.py (100%) rename {listmonk_client => listmonk}/models/get_lists200_response_data.py (100%) rename {listmonk_client => listmonk}/models/get_logs200_response.py (100%) rename {listmonk_client => listmonk}/models/get_media200_response.py (100%) rename {listmonk_client => listmonk}/models/get_public_lists200_response_inner.py (100%) rename {listmonk_client => listmonk}/models/get_running_campaign_stats200_response.py (100%) rename {listmonk_client => listmonk}/models/get_server_config200_response.py (100%) rename {listmonk_client => listmonk}/models/get_settings200_response.py (100%) rename {listmonk_client => listmonk}/models/get_subscriber_bounces_by_id200_response.py (100%) rename {listmonk_client => listmonk}/models/get_subscribers200_response.py (100%) rename {listmonk_client => listmonk}/models/get_subscribers200_response_data.py (100%) rename {listmonk_client => listmonk}/models/get_template_by_id200_response.py (100%) rename {listmonk_client => listmonk}/models/get_templates200_response.py (100%) rename {listmonk_client => listmonk}/models/handle_public_subscription200_response.py (100%) rename {listmonk_client => listmonk}/models/handle_public_subscription_request.py (100%) rename {listmonk_client => listmonk}/models/import_status.py (100%) rename {listmonk_client => listmonk}/models/import_status_data.py (100%) rename {listmonk_client => listmonk}/models/import_subscribers_request.py (100%) rename {listmonk_client => listmonk}/models/language_pack.py (100%) rename {listmonk_client => listmonk}/models/language_pack_data.py (100%) rename {listmonk_client => listmonk}/models/list.py (100%) rename {listmonk_client => listmonk}/models/mail_box_bounces.py (100%) rename {listmonk_client => listmonk}/models/media_file_object.py (100%) rename {listmonk_client => listmonk}/models/new_list.py (100%) rename {listmonk_client => listmonk}/models/new_subscriber.py (100%) rename {listmonk_client => listmonk}/models/new_subscriber_attribs.py (100%) rename {listmonk_client => listmonk}/models/new_subscriber_attribs_stack.py (100%) rename {listmonk_client => listmonk}/models/server_config.py (100%) rename {listmonk_client => listmonk}/models/server_config_data.py (100%) rename {listmonk_client => listmonk}/models/server_config_data_langs_inner.py (100%) rename {listmonk_client => listmonk}/models/settings.py (100%) rename {listmonk_client => listmonk}/models/smtp_settings.py (100%) rename {listmonk_client => listmonk}/models/smtp_test.py (100%) rename {listmonk_client => listmonk}/models/subscriber.py (100%) rename {listmonk_client => listmonk}/models/subscriber_data.py (100%) rename {listmonk_client => listmonk}/models/subscriber_lists_inner.py (100%) rename {listmonk_client => listmonk}/models/subscriber_profile.py (100%) rename {listmonk_client => listmonk}/models/subscriber_profile_attribs.py (100%) rename {listmonk_client => listmonk}/models/subscriber_query_request.py (100%) rename {listmonk_client => listmonk}/models/subscriptions.py (100%) rename {listmonk_client => listmonk}/models/template.py (100%) rename {listmonk_client => listmonk}/models/transactional_message.py (100%) rename {listmonk_client => listmonk}/models/update_campaign_archive_by_id_request.py (100%) rename {listmonk_client => listmonk}/models/update_campaign_status_by_id_request.py (100%) rename {listmonk_client => listmonk}/models/update_subscriber.py (100%) rename {listmonk_client => listmonk}/models/upload_media200_response.py (100%) rename {listmonk_client => listmonk}/py.typed (100%) rename {listmonk_client => listmonk}/rest.py (100%) create mode 100644 templates/CHANGELOG.md.j2 diff --git a/.travis.yml b/.travis.yml index 51fa761..5ffc205 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,4 +14,4 @@ install: - "pip install -r requirements.txt" - "pip install -r test-requirements.txt" # command to run tests -script: pytest --cov=listmonk_client +script: pytest --cov=listmonk diff --git a/listmonk_client/__init__.py b/listmonk/__init__.py similarity index 100% rename from listmonk_client/__init__.py rename to listmonk/__init__.py diff --git a/listmonk_client/api/__init__.py b/listmonk/api/__init__.py similarity index 100% rename from listmonk_client/api/__init__.py rename to listmonk/api/__init__.py diff --git a/listmonk_client/api/admin_api.py b/listmonk/api/admin_api.py similarity index 100% rename from listmonk_client/api/admin_api.py rename to listmonk/api/admin_api.py diff --git a/listmonk_client/api/bounces_api.py b/listmonk/api/bounces_api.py similarity index 100% rename from listmonk_client/api/bounces_api.py rename to listmonk/api/bounces_api.py diff --git a/listmonk_client/api/campaigns_api.py b/listmonk/api/campaigns_api.py similarity index 100% rename from listmonk_client/api/campaigns_api.py rename to listmonk/api/campaigns_api.py diff --git a/listmonk_client/api/import_api.py b/listmonk/api/import_api.py similarity index 100% rename from listmonk_client/api/import_api.py rename to listmonk/api/import_api.py diff --git a/listmonk_client/api/lists_api.py b/listmonk/api/lists_api.py similarity index 100% rename from listmonk_client/api/lists_api.py rename to listmonk/api/lists_api.py diff --git a/listmonk_client/api/logs_api.py b/listmonk/api/logs_api.py similarity index 100% rename from listmonk_client/api/logs_api.py rename to listmonk/api/logs_api.py diff --git a/listmonk_client/api/maintenance_api.py b/listmonk/api/maintenance_api.py similarity index 100% rename from listmonk_client/api/maintenance_api.py rename to listmonk/api/maintenance_api.py diff --git a/listmonk_client/api/media_api.py b/listmonk/api/media_api.py similarity index 100% rename from listmonk_client/api/media_api.py rename to listmonk/api/media_api.py diff --git a/listmonk_client/api/miscellaneous_api.py b/listmonk/api/miscellaneous_api.py similarity index 100% rename from listmonk_client/api/miscellaneous_api.py rename to listmonk/api/miscellaneous_api.py diff --git a/listmonk_client/api/public_api.py b/listmonk/api/public_api.py similarity index 100% rename from listmonk_client/api/public_api.py rename to listmonk/api/public_api.py diff --git a/listmonk_client/api/settings_api.py b/listmonk/api/settings_api.py similarity index 100% rename from listmonk_client/api/settings_api.py rename to listmonk/api/settings_api.py diff --git a/listmonk_client/api/subscribers_api.py b/listmonk/api/subscribers_api.py similarity index 100% rename from listmonk_client/api/subscribers_api.py rename to listmonk/api/subscribers_api.py diff --git a/listmonk_client/api/templates_api.py b/listmonk/api/templates_api.py similarity index 100% rename from listmonk_client/api/templates_api.py rename to listmonk/api/templates_api.py diff --git a/listmonk_client/api/transactional_api.py b/listmonk/api/transactional_api.py similarity index 100% rename from listmonk_client/api/transactional_api.py rename to listmonk/api/transactional_api.py diff --git a/listmonk_client/api_client.py b/listmonk/api_client.py similarity index 100% rename from listmonk_client/api_client.py rename to listmonk/api_client.py diff --git a/listmonk_client/api_response.py b/listmonk/api_response.py similarity index 100% rename from listmonk_client/api_response.py rename to listmonk/api_response.py diff --git a/listmonk_client/configuration.py b/listmonk/configuration.py similarity index 99% rename from listmonk_client/configuration.py rename to listmonk/configuration.py index c3c18c0..74bd7a3 100644 --- a/listmonk_client/configuration.py +++ b/listmonk/configuration.py @@ -64,7 +64,7 @@ class Configuration: Configure API client with HTTP basic authentication: -conf = listmonk_client.Configuration( +conf = listmonk.Configuration( username='the-user', password='the-password', ) @@ -123,7 +123,7 @@ def __init__(self, host=None, self.logger = {} """Logging Settings """ - self.logger["package_logger"] = logging.getLogger("listmonk_client") + self.logger["package_logger"] = logging.getLogger("listmonk") self.logger["urllib3_logger"] = logging.getLogger("urllib3") self.logger_format = '%(asctime)s %(levelname)s %(message)s' """Log format diff --git a/listmonk_client/exceptions.py b/listmonk/exceptions.py similarity index 100% rename from listmonk_client/exceptions.py rename to listmonk/exceptions.py diff --git a/listmonk_client/models/__init__.py b/listmonk/models/__init__.py similarity index 100% rename from listmonk_client/models/__init__.py rename to listmonk/models/__init__.py diff --git a/listmonk_client/models/bounce.py b/listmonk/models/bounce.py similarity index 100% rename from listmonk_client/models/bounce.py rename to listmonk/models/bounce.py diff --git a/listmonk_client/models/bounce_results_inner.py b/listmonk/models/bounce_results_inner.py similarity index 100% rename from listmonk_client/models/bounce_results_inner.py rename to listmonk/models/bounce_results_inner.py diff --git a/listmonk_client/models/bounce_results_inner_campaign.py b/listmonk/models/bounce_results_inner_campaign.py similarity index 100% rename from listmonk_client/models/bounce_results_inner_campaign.py rename to listmonk/models/bounce_results_inner_campaign.py diff --git a/listmonk_client/models/campaign.py b/listmonk/models/campaign.py similarity index 100% rename from listmonk_client/models/campaign.py rename to listmonk/models/campaign.py diff --git a/listmonk_client/models/campaign_analytics_count.py b/listmonk/models/campaign_analytics_count.py similarity index 100% rename from listmonk_client/models/campaign_analytics_count.py rename to listmonk/models/campaign_analytics_count.py diff --git a/listmonk_client/models/campaign_content_request.py b/listmonk/models/campaign_content_request.py similarity index 100% rename from listmonk_client/models/campaign_content_request.py rename to listmonk/models/campaign_content_request.py diff --git a/listmonk_client/models/campaign_request.py b/listmonk/models/campaign_request.py similarity index 100% rename from listmonk_client/models/campaign_request.py rename to listmonk/models/campaign_request.py diff --git a/listmonk_client/models/campaign_request_send_at.py b/listmonk/models/campaign_request_send_at.py similarity index 100% rename from listmonk_client/models/campaign_request_send_at.py rename to listmonk/models/campaign_request_send_at.py diff --git a/listmonk_client/models/campaign_stats.py b/listmonk/models/campaign_stats.py similarity index 100% rename from listmonk_client/models/campaign_stats.py rename to listmonk/models/campaign_stats.py diff --git a/listmonk_client/models/campaign_update.py b/listmonk/models/campaign_update.py similarity index 100% rename from listmonk_client/models/campaign_update.py rename to listmonk/models/campaign_update.py diff --git a/listmonk_client/models/create_campaign200_response.py b/listmonk/models/create_campaign200_response.py similarity index 100% rename from listmonk_client/models/create_campaign200_response.py rename to listmonk/models/create_campaign200_response.py diff --git a/listmonk_client/models/create_list200_response.py b/listmonk/models/create_list200_response.py similarity index 100% rename from listmonk_client/models/create_list200_response.py rename to listmonk/models/create_list200_response.py diff --git a/listmonk_client/models/create_subscriber200_response.py b/listmonk/models/create_subscriber200_response.py similarity index 100% rename from listmonk_client/models/create_subscriber200_response.py rename to listmonk/models/create_subscriber200_response.py diff --git a/listmonk_client/models/dashboard_chart.py b/listmonk/models/dashboard_chart.py similarity index 100% rename from listmonk_client/models/dashboard_chart.py rename to listmonk/models/dashboard_chart.py diff --git a/listmonk_client/models/dashboard_chart_link_clicks_inner.py b/listmonk/models/dashboard_chart_link_clicks_inner.py similarity index 100% rename from listmonk_client/models/dashboard_chart_link_clicks_inner.py rename to listmonk/models/dashboard_chart_link_clicks_inner.py diff --git a/listmonk_client/models/dashboard_count.py b/listmonk/models/dashboard_count.py similarity index 100% rename from listmonk_client/models/dashboard_count.py rename to listmonk/models/dashboard_count.py diff --git a/listmonk_client/models/dashboard_count_data.py b/listmonk/models/dashboard_count_data.py similarity index 100% rename from listmonk_client/models/dashboard_count_data.py rename to listmonk/models/dashboard_count_data.py diff --git a/listmonk_client/models/dashboard_count_data_campaigns.py b/listmonk/models/dashboard_count_data_campaigns.py similarity index 100% rename from listmonk_client/models/dashboard_count_data_campaigns.py rename to listmonk/models/dashboard_count_data_campaigns.py diff --git a/listmonk_client/models/dashboard_count_data_campaigns_by_status.py b/listmonk/models/dashboard_count_data_campaigns_by_status.py similarity index 100% rename from listmonk_client/models/dashboard_count_data_campaigns_by_status.py rename to listmonk/models/dashboard_count_data_campaigns_by_status.py diff --git a/listmonk_client/models/dashboard_count_data_lists.py b/listmonk/models/dashboard_count_data_lists.py similarity index 100% rename from listmonk_client/models/dashboard_count_data_lists.py rename to listmonk/models/dashboard_count_data_lists.py diff --git a/listmonk_client/models/dashboard_count_data_subscribers.py b/listmonk/models/dashboard_count_data_subscribers.py similarity index 100% rename from listmonk_client/models/dashboard_count_data_subscribers.py rename to listmonk/models/dashboard_count_data_subscribers.py diff --git a/listmonk_client/models/delete_gc_subscribers200_response.py b/listmonk/models/delete_gc_subscribers200_response.py similarity index 100% rename from listmonk_client/models/delete_gc_subscribers200_response.py rename to listmonk/models/delete_gc_subscribers200_response.py diff --git a/listmonk_client/models/delete_gc_subscribers200_response_data.py b/listmonk/models/delete_gc_subscribers200_response_data.py similarity index 100% rename from listmonk_client/models/delete_gc_subscribers200_response_data.py rename to listmonk/models/delete_gc_subscribers200_response_data.py diff --git a/listmonk_client/models/get_bounce_by_id200_response.py b/listmonk/models/get_bounce_by_id200_response.py similarity index 100% rename from listmonk_client/models/get_bounce_by_id200_response.py rename to listmonk/models/get_bounce_by_id200_response.py diff --git a/listmonk_client/models/get_bounces200_response.py b/listmonk/models/get_bounces200_response.py similarity index 100% rename from listmonk_client/models/get_bounces200_response.py rename to listmonk/models/get_bounces200_response.py diff --git a/listmonk_client/models/get_bounces200_response_data.py b/listmonk/models/get_bounces200_response_data.py similarity index 100% rename from listmonk_client/models/get_bounces200_response_data.py rename to listmonk/models/get_bounces200_response_data.py diff --git a/listmonk_client/models/get_campaign_analytics200_response.py b/listmonk/models/get_campaign_analytics200_response.py similarity index 100% rename from listmonk_client/models/get_campaign_analytics200_response.py rename to listmonk/models/get_campaign_analytics200_response.py diff --git a/listmonk_client/models/get_campaign_by_id200_response.py b/listmonk/models/get_campaign_by_id200_response.py similarity index 100% rename from listmonk_client/models/get_campaign_by_id200_response.py rename to listmonk/models/get_campaign_by_id200_response.py diff --git a/listmonk_client/models/get_campaigns200_response.py b/listmonk/models/get_campaigns200_response.py similarity index 100% rename from listmonk_client/models/get_campaigns200_response.py rename to listmonk/models/get_campaigns200_response.py diff --git a/listmonk_client/models/get_campaigns200_response_data.py b/listmonk/models/get_campaigns200_response_data.py similarity index 100% rename from listmonk_client/models/get_campaigns200_response_data.py rename to listmonk/models/get_campaigns200_response_data.py diff --git a/listmonk_client/models/get_dashboard_charts200_response.py b/listmonk/models/get_dashboard_charts200_response.py similarity index 100% rename from listmonk_client/models/get_dashboard_charts200_response.py rename to listmonk/models/get_dashboard_charts200_response.py diff --git a/listmonk_client/models/get_dashboard_counts200_response.py b/listmonk/models/get_dashboard_counts200_response.py similarity index 100% rename from listmonk_client/models/get_dashboard_counts200_response.py rename to listmonk/models/get_dashboard_counts200_response.py diff --git a/listmonk_client/models/get_health_check200_response.py b/listmonk/models/get_health_check200_response.py similarity index 100% rename from listmonk_client/models/get_health_check200_response.py rename to listmonk/models/get_health_check200_response.py diff --git a/listmonk_client/models/get_i18n_lang200_response.py b/listmonk/models/get_i18n_lang200_response.py similarity index 100% rename from listmonk_client/models/get_i18n_lang200_response.py rename to listmonk/models/get_i18n_lang200_response.py diff --git a/listmonk_client/models/get_import_subscriber_stats200_response.py b/listmonk/models/get_import_subscriber_stats200_response.py similarity index 100% rename from listmonk_client/models/get_import_subscriber_stats200_response.py rename to listmonk/models/get_import_subscriber_stats200_response.py diff --git a/listmonk_client/models/get_import_subscribers200_response.py b/listmonk/models/get_import_subscribers200_response.py similarity index 100% rename from listmonk_client/models/get_import_subscribers200_response.py rename to listmonk/models/get_import_subscribers200_response.py diff --git a/listmonk_client/models/get_lists200_response.py b/listmonk/models/get_lists200_response.py similarity index 100% rename from listmonk_client/models/get_lists200_response.py rename to listmonk/models/get_lists200_response.py diff --git a/listmonk_client/models/get_lists200_response_data.py b/listmonk/models/get_lists200_response_data.py similarity index 100% rename from listmonk_client/models/get_lists200_response_data.py rename to listmonk/models/get_lists200_response_data.py diff --git a/listmonk_client/models/get_logs200_response.py b/listmonk/models/get_logs200_response.py similarity index 100% rename from listmonk_client/models/get_logs200_response.py rename to listmonk/models/get_logs200_response.py diff --git a/listmonk_client/models/get_media200_response.py b/listmonk/models/get_media200_response.py similarity index 100% rename from listmonk_client/models/get_media200_response.py rename to listmonk/models/get_media200_response.py diff --git a/listmonk_client/models/get_public_lists200_response_inner.py b/listmonk/models/get_public_lists200_response_inner.py similarity index 100% rename from listmonk_client/models/get_public_lists200_response_inner.py rename to listmonk/models/get_public_lists200_response_inner.py diff --git a/listmonk_client/models/get_running_campaign_stats200_response.py b/listmonk/models/get_running_campaign_stats200_response.py similarity index 100% rename from listmonk_client/models/get_running_campaign_stats200_response.py rename to listmonk/models/get_running_campaign_stats200_response.py diff --git a/listmonk_client/models/get_server_config200_response.py b/listmonk/models/get_server_config200_response.py similarity index 100% rename from listmonk_client/models/get_server_config200_response.py rename to listmonk/models/get_server_config200_response.py diff --git a/listmonk_client/models/get_settings200_response.py b/listmonk/models/get_settings200_response.py similarity index 100% rename from listmonk_client/models/get_settings200_response.py rename to listmonk/models/get_settings200_response.py diff --git a/listmonk_client/models/get_subscriber_bounces_by_id200_response.py b/listmonk/models/get_subscriber_bounces_by_id200_response.py similarity index 100% rename from listmonk_client/models/get_subscriber_bounces_by_id200_response.py rename to listmonk/models/get_subscriber_bounces_by_id200_response.py diff --git a/listmonk_client/models/get_subscribers200_response.py b/listmonk/models/get_subscribers200_response.py similarity index 100% rename from listmonk_client/models/get_subscribers200_response.py rename to listmonk/models/get_subscribers200_response.py diff --git a/listmonk_client/models/get_subscribers200_response_data.py b/listmonk/models/get_subscribers200_response_data.py similarity index 100% rename from listmonk_client/models/get_subscribers200_response_data.py rename to listmonk/models/get_subscribers200_response_data.py diff --git a/listmonk_client/models/get_template_by_id200_response.py b/listmonk/models/get_template_by_id200_response.py similarity index 100% rename from listmonk_client/models/get_template_by_id200_response.py rename to listmonk/models/get_template_by_id200_response.py diff --git a/listmonk_client/models/get_templates200_response.py b/listmonk/models/get_templates200_response.py similarity index 100% rename from listmonk_client/models/get_templates200_response.py rename to listmonk/models/get_templates200_response.py diff --git a/listmonk_client/models/handle_public_subscription200_response.py b/listmonk/models/handle_public_subscription200_response.py similarity index 100% rename from listmonk_client/models/handle_public_subscription200_response.py rename to listmonk/models/handle_public_subscription200_response.py diff --git a/listmonk_client/models/handle_public_subscription_request.py b/listmonk/models/handle_public_subscription_request.py similarity index 100% rename from listmonk_client/models/handle_public_subscription_request.py rename to listmonk/models/handle_public_subscription_request.py diff --git a/listmonk_client/models/import_status.py b/listmonk/models/import_status.py similarity index 100% rename from listmonk_client/models/import_status.py rename to listmonk/models/import_status.py diff --git a/listmonk_client/models/import_status_data.py b/listmonk/models/import_status_data.py similarity index 100% rename from listmonk_client/models/import_status_data.py rename to listmonk/models/import_status_data.py diff --git a/listmonk_client/models/import_subscribers_request.py b/listmonk/models/import_subscribers_request.py similarity index 100% rename from listmonk_client/models/import_subscribers_request.py rename to listmonk/models/import_subscribers_request.py diff --git a/listmonk_client/models/language_pack.py b/listmonk/models/language_pack.py similarity index 100% rename from listmonk_client/models/language_pack.py rename to listmonk/models/language_pack.py diff --git a/listmonk_client/models/language_pack_data.py b/listmonk/models/language_pack_data.py similarity index 100% rename from listmonk_client/models/language_pack_data.py rename to listmonk/models/language_pack_data.py diff --git a/listmonk_client/models/list.py b/listmonk/models/list.py similarity index 100% rename from listmonk_client/models/list.py rename to listmonk/models/list.py diff --git a/listmonk_client/models/mail_box_bounces.py b/listmonk/models/mail_box_bounces.py similarity index 100% rename from listmonk_client/models/mail_box_bounces.py rename to listmonk/models/mail_box_bounces.py diff --git a/listmonk_client/models/media_file_object.py b/listmonk/models/media_file_object.py similarity index 100% rename from listmonk_client/models/media_file_object.py rename to listmonk/models/media_file_object.py diff --git a/listmonk_client/models/new_list.py b/listmonk/models/new_list.py similarity index 100% rename from listmonk_client/models/new_list.py rename to listmonk/models/new_list.py diff --git a/listmonk_client/models/new_subscriber.py b/listmonk/models/new_subscriber.py similarity index 100% rename from listmonk_client/models/new_subscriber.py rename to listmonk/models/new_subscriber.py diff --git a/listmonk_client/models/new_subscriber_attribs.py b/listmonk/models/new_subscriber_attribs.py similarity index 100% rename from listmonk_client/models/new_subscriber_attribs.py rename to listmonk/models/new_subscriber_attribs.py diff --git a/listmonk_client/models/new_subscriber_attribs_stack.py b/listmonk/models/new_subscriber_attribs_stack.py similarity index 100% rename from listmonk_client/models/new_subscriber_attribs_stack.py rename to listmonk/models/new_subscriber_attribs_stack.py diff --git a/listmonk_client/models/server_config.py b/listmonk/models/server_config.py similarity index 100% rename from listmonk_client/models/server_config.py rename to listmonk/models/server_config.py diff --git a/listmonk_client/models/server_config_data.py b/listmonk/models/server_config_data.py similarity index 100% rename from listmonk_client/models/server_config_data.py rename to listmonk/models/server_config_data.py diff --git a/listmonk_client/models/server_config_data_langs_inner.py b/listmonk/models/server_config_data_langs_inner.py similarity index 100% rename from listmonk_client/models/server_config_data_langs_inner.py rename to listmonk/models/server_config_data_langs_inner.py diff --git a/listmonk_client/models/settings.py b/listmonk/models/settings.py similarity index 100% rename from listmonk_client/models/settings.py rename to listmonk/models/settings.py diff --git a/listmonk_client/models/smtp_settings.py b/listmonk/models/smtp_settings.py similarity index 100% rename from listmonk_client/models/smtp_settings.py rename to listmonk/models/smtp_settings.py diff --git a/listmonk_client/models/smtp_test.py b/listmonk/models/smtp_test.py similarity index 100% rename from listmonk_client/models/smtp_test.py rename to listmonk/models/smtp_test.py diff --git a/listmonk_client/models/subscriber.py b/listmonk/models/subscriber.py similarity index 100% rename from listmonk_client/models/subscriber.py rename to listmonk/models/subscriber.py diff --git a/listmonk_client/models/subscriber_data.py b/listmonk/models/subscriber_data.py similarity index 100% rename from listmonk_client/models/subscriber_data.py rename to listmonk/models/subscriber_data.py diff --git a/listmonk_client/models/subscriber_lists_inner.py b/listmonk/models/subscriber_lists_inner.py similarity index 100% rename from listmonk_client/models/subscriber_lists_inner.py rename to listmonk/models/subscriber_lists_inner.py diff --git a/listmonk_client/models/subscriber_profile.py b/listmonk/models/subscriber_profile.py similarity index 100% rename from listmonk_client/models/subscriber_profile.py rename to listmonk/models/subscriber_profile.py diff --git a/listmonk_client/models/subscriber_profile_attribs.py b/listmonk/models/subscriber_profile_attribs.py similarity index 100% rename from listmonk_client/models/subscriber_profile_attribs.py rename to listmonk/models/subscriber_profile_attribs.py diff --git a/listmonk_client/models/subscriber_query_request.py b/listmonk/models/subscriber_query_request.py similarity index 100% rename from listmonk_client/models/subscriber_query_request.py rename to listmonk/models/subscriber_query_request.py diff --git a/listmonk_client/models/subscriptions.py b/listmonk/models/subscriptions.py similarity index 100% rename from listmonk_client/models/subscriptions.py rename to listmonk/models/subscriptions.py diff --git a/listmonk_client/models/template.py b/listmonk/models/template.py similarity index 100% rename from listmonk_client/models/template.py rename to listmonk/models/template.py diff --git a/listmonk_client/models/transactional_message.py b/listmonk/models/transactional_message.py similarity index 100% rename from listmonk_client/models/transactional_message.py rename to listmonk/models/transactional_message.py diff --git a/listmonk_client/models/update_campaign_archive_by_id_request.py b/listmonk/models/update_campaign_archive_by_id_request.py similarity index 100% rename from listmonk_client/models/update_campaign_archive_by_id_request.py rename to listmonk/models/update_campaign_archive_by_id_request.py diff --git a/listmonk_client/models/update_campaign_status_by_id_request.py b/listmonk/models/update_campaign_status_by_id_request.py similarity index 100% rename from listmonk_client/models/update_campaign_status_by_id_request.py rename to listmonk/models/update_campaign_status_by_id_request.py diff --git a/listmonk_client/models/update_subscriber.py b/listmonk/models/update_subscriber.py similarity index 100% rename from listmonk_client/models/update_subscriber.py rename to listmonk/models/update_subscriber.py diff --git a/listmonk_client/models/upload_media200_response.py b/listmonk/models/upload_media200_response.py similarity index 100% rename from listmonk_client/models/upload_media200_response.py rename to listmonk/models/upload_media200_response.py diff --git a/listmonk_client/py.typed b/listmonk/py.typed similarity index 100% rename from listmonk_client/py.typed rename to listmonk/py.typed diff --git a/listmonk_client/rest.py b/listmonk/rest.py similarity index 100% rename from listmonk_client/rest.py rename to listmonk/rest.py diff --git a/pyproject.toml b/pyproject.toml index a7c734a..dca4b4e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,8 +7,10 @@ license = "AGPL-3.0 license" readme = "README.md" repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" keywords = ["OpenAPI", "OpenAPI-Generator", "Listmonk"] -include = ["openapi_client/py.typed"] +include = ["listmonk/py.typed"] +[[tool.poetry.packages]] +include = "listmonk" [tool.poetry.dependencies] python = "^3.7" @@ -34,4 +36,12 @@ version_variables = [ "listmonk_client/__init__.py:__version__",] version_toml = [ "pyproject.toml:tool.poetry.version",] branch = "main" build_command = "pip install poetry && poetry build" -commit_parser = "emoji" \ No newline at end of file +commit_parser = "emoji" + +[tool.semantic_release.commit_parser_options] +major_tags = [ ":boom:", "💥",] +minor_tags = [ ":sparkles:", "✨",] +patch_tags = [ ":zap:", "⚡️", ":bug:", "🐛", ":ambulance:", "🚑️", ":lipstick:", "💄", ":lock:", "🔒️", ":arrow_down:", "⬇️", ":arrow_up:", "⬆️", ":pushpin:", "📌", ":chart_with_upwards_trend:", "📈", ":heavy_plus_sign:", "➕", ":heavy_minus_sign:", "➖", ":wrench:", "🔧", ":globe_with_meridians:", "🌐", ":pencil2:", "✏️", ":rewind:", "⏪️", ":package:", "📦️", ":alien:", "👽️", ":bento:", "🍱", ":wheelchair:", "♿️", ":speech_balloon:", "💬", ":card_file_box:", "🗃️", ":children_crossing:", "🚸", ":iphone:", "📱", ":egg:", "🥚", ":alembic:", "⚗️", ":mag:", "🔍️", ":label:", "🏷️", ":triangular_flag_on_post:", "🚩", ":goal_net:", "🥅", ":dizzy:", "💫", ":wastebasket:", "🗑️", ":passport_control:", "🛂", ":adhesive_bandage:", "🩹", ":necktie:", "👔",] + +[tool.semantic_release.changelog] +template_dir = "templates" \ No newline at end of file diff --git a/setup.py b/setup.py index a5effec..c47e10c 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ ] setup( - name="python-listmonk", + name="listmonk", version="0.0.1", description="Listmonk", author="OpenAPI Generator community", @@ -43,5 +43,5 @@ long_description="""\ The API collection for listmonk """, # noqa: E501 - package_data={"listmonk_client": ["py.typed"]}, + package_data={"listmonk": ["py.typed"]}, ) diff --git a/templates/CHANGELOG.md.j2 b/templates/CHANGELOG.md.j2 new file mode 100644 index 0000000..664950c --- /dev/null +++ b/templates/CHANGELOG.md.j2 @@ -0,0 +1,43 @@ +# CHANGELOG +{# RELEASED #} +{% for version, release in context.history.released.items() %} +## {{ version.as_tag() }} ({{ release.tagged_date.strftime("%Y-%m-%d") }}) +{% for type_, commits in release["elements"] | dictsort %} +{% if type_ == "💥" or type_ == ":boom:" %} +### 💥 BREAKING CHANGES +{% for commit in commits %} +* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) +{% endfor %} +{% elif type_ == "✨" or type_ == ":feat:" %} +### ✨ Features +{% for commit in commits %} +* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) +{% endfor %} +{% elif type_ == "🔒️" or type_ == ":lock:" %} +### 🔒️ Security +{% for commit in commits %} +* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) +{% endfor %} +{% elif type_ == "💄" or type_ == "🚸" or type_ == "♿️" or type_ == "📱" or type_ == ":lipstick:" or type_ == ":children_crossing:" or type_ == ":wheelchair:" or type_ == ":iphone:" %} +### 💄 UI/UX +{% for commit in commits %} +* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) +{% endfor %} +{% elif type_ == "⚡️" or type_ == ":zap:" %} +### ⚡️ Performances +{% for commit in commits %} +* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) +{% endfor %} +{% elif type_ == "🐛" or type_ == ":bug:" or type_ == "🚑️" or type_ == ":ambulance:" or type_ == "🩹" or type_ == ":adhesive_bandage:" %} +### 🐛 Fixes +{% for commit in commits %} +* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) +{% endfor %} +{% elif type_ == "⬆️" or type_ == "⬇️" or type_ == "📌" or type_ == "➕" or type_ == "➖" or type_ == ":arrow_up:" or type_ == ":arrow_down:" or type_ == ":pushpin:" or type_ == ":heavy_plus_sign:" or type_ == ":heavy_minus_sign:" %} +### ⬆️ Dependencies +{% for commit in commits %} +* {{ commit.commit.message.rstrip() }} ([`{{ commit.commit.hexsha[:7] }}`]({{ commit.commit.hexsha | commit_hash_url }})) +{% endfor %} +{% endif %} +{% endfor %} +{% endfor %} \ No newline at end of file diff --git a/test/test_bounce.py b/test/test_bounce.py index 991b011..20bd1b5 100644 --- a/test/test_bounce.py +++ b/test/test_bounce.py @@ -37,16 +37,16 @@ def make_instance(self, include_optional) -> Bounce: if include_optional: return Bounce( results = [ - listmonk_client.models.bounce_results_inner.Bounce_results_inner( + listmonk.models.bounce_results_inner.Bounce_results_inner( id = 56, type = '', source = '', - meta = listmonk_client.models.meta.meta(), + meta = listmonk.models.meta.meta(), created_at = '', email = '', subscriber_uuid = '', subscriber_id = 56, - campaign = listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + campaign = listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ), campaign_uuid = '', diff --git a/test/test_bounce_results_inner.py b/test/test_bounce_results_inner.py index e44ec46..0bc81a3 100644 --- a/test/test_bounce_results_inner.py +++ b/test/test_bounce_results_inner.py @@ -39,12 +39,12 @@ def make_instance(self, include_optional) -> BounceResultsInner: id = 56, type = '', source = '', - meta = listmonk_client.models.meta.meta(), + meta = listmonk.models.meta.meta(), created_at = '', email = '', subscriber_uuid = '', subscriber_id = 56, - campaign = listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + campaign = listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ), campaign_uuid = '', diff --git a/test/test_campaign.py b/test/test_campaign.py index 7974462..ba21a50 100644 --- a/test/test_campaign.py +++ b/test/test_campaign.py @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> Campaign: views = 56, clicks = 56, lists = [ - listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ) ], diff --git a/test/test_campaign_content_request.py b/test/test_campaign_content_request.py index 4250436..37ac06c 100644 --- a/test/test_campaign_content_request.py +++ b/test/test_campaign_content_request.py @@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> CampaignContentRequest: views = 56, clicks = 56, lists = [ - listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ) ], diff --git a/test/test_campaign_request.py b/test/test_campaign_request.py index 76acad2..d95a7b1 100644 --- a/test/test_campaign_request.py +++ b/test/test_campaign_request.py @@ -49,7 +49,7 @@ def make_instance(self, include_optional) -> CampaignRequest: '' ], send_later = True, - send_at = listmonk_client.models.campaign_request_send_at.CampaignRequest_send_at( + send_at = listmonk.models.campaign_request_send_at.CampaignRequest_send_at( headers = [ None ], diff --git a/test/test_create_campaign200_response.py b/test/test_create_campaign200_response.py index b59d17f..db4f076 100644 --- a/test/test_create_campaign200_response.py +++ b/test/test_create_campaign200_response.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> CreateCampaign200Response: model = CreateCampaign200Response() if include_optional: return CreateCampaign200Response( - data = listmonk_client.models.campaign_update.CampaignUpdate( + data = listmonk.models.campaign_update.CampaignUpdate( name = '', subject = '', lists = [ @@ -49,7 +49,7 @@ def make_instance(self, include_optional) -> CreateCampaign200Response: '' ], send_later = True, - send_at = listmonk_client.models.send_at.send_at(), + send_at = listmonk.models.send_at.send_at(), headers = [ None ], @@ -59,7 +59,7 @@ def make_instance(self, include_optional) -> CreateCampaign200Response: altbody = '', archive = True, archive_template_id = 56, - archive_meta = listmonk_client.models.archive_meta.archive_meta(), ) + archive_meta = listmonk.models.archive_meta.archive_meta(), ) ) else: return CreateCampaign200Response( diff --git a/test/test_create_list200_response.py b/test/test_create_list200_response.py index 4ce50d5..51e981b 100644 --- a/test/test_create_list200_response.py +++ b/test/test_create_list200_response.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> CreateList200Response: model = CreateList200Response() if include_optional: return CreateList200Response( - data = listmonk_client.models.list.List( + data = listmonk.models.list.List( id = 56, created_at = '', updated_at = '', diff --git a/test/test_create_subscriber200_response.py b/test/test_create_subscriber200_response.py index f023f4f..14ea7a4 100644 --- a/test/test_create_subscriber200_response.py +++ b/test/test_create_subscriber200_response.py @@ -36,20 +36,20 @@ def make_instance(self, include_optional) -> CreateSubscriber200Response: model = CreateSubscriber200Response() if include_optional: return CreateSubscriber200Response( - data = listmonk_client.models.subscriber.Subscriber( + data = listmonk.models.subscriber.Subscriber( id = 56, created_at = '', updated_at = '', uuid = '', email = '', name = '', - attribs = listmonk_client.models.subscriber_profile_attribs.SubscriberProfile_attribs( + attribs = listmonk.models.subscriber_profile_attribs.SubscriberProfile_attribs( city = '', good = True, type = '', ), status = '', lists = [ - listmonk_client.models.subscriber_lists_inner.Subscriber_lists_inner( + listmonk.models.subscriber_lists_inner.Subscriber_lists_inner( subscription_status = '', id = 56, uuid = '', diff --git a/test/test_dashboard_chart.py b/test/test_dashboard_chart.py index 2c113f4..04f69dd 100644 --- a/test/test_dashboard_chart.py +++ b/test/test_dashboard_chart.py @@ -37,12 +37,12 @@ def make_instance(self, include_optional) -> DashboardChart: if include_optional: return DashboardChart( link_clicks = [ - listmonk_client.models.dashboard_chart_link_clicks_inner.DashboardChart_link_clicks_inner( + listmonk.models.dashboard_chart_link_clicks_inner.DashboardChart_link_clicks_inner( count = 56, date = '', ) ], campaign_views = [ - listmonk_client.models.dashboard_chart_link_clicks_inner.DashboardChart_link_clicks_inner( + listmonk.models.dashboard_chart_link_clicks_inner.DashboardChart_link_clicks_inner( count = 56, date = '', ) ] diff --git a/test/test_dashboard_count.py b/test/test_dashboard_count.py index e85923f..3c27c7e 100644 --- a/test/test_dashboard_count.py +++ b/test/test_dashboard_count.py @@ -36,20 +36,20 @@ def make_instance(self, include_optional) -> DashboardCount: model = DashboardCount() if include_optional: return DashboardCount( - data = listmonk_client.models.dashboard_count_data.DashboardCount_data( - subscribers = listmonk_client.models.dashboard_count_data_subscribers.DashboardCount_data_subscribers( + data = listmonk.models.dashboard_count_data.DashboardCount_data( + subscribers = listmonk.models.dashboard_count_data_subscribers.DashboardCount_data_subscribers( total = 56, - blocklisted = listmonk_client.models.blocklisted.blocklisted(), + blocklisted = listmonk.models.blocklisted.blocklisted(), orphans = 56, ), - lists = listmonk_client.models.dashboard_count_data_lists.DashboardCount_data_lists( + lists = listmonk.models.dashboard_count_data_lists.DashboardCount_data_lists( total = 56, private = 56, public = 56, optin_single = 56, optin_double = 56, ), - campaigns = listmonk_client.models.dashboard_count_data_campaigns.DashboardCount_data_campaigns( + campaigns = listmonk.models.dashboard_count_data_campaigns.DashboardCount_data_campaigns( total = 56, - by_status = listmonk_client.models.dashboard_count_data_campaigns_by_status.DashboardCount_data_campaigns_by_status( + by_status = listmonk.models.dashboard_count_data_campaigns_by_status.DashboardCount_data_campaigns_by_status( draft = 56, ), ), messages = 56, ) ) diff --git a/test/test_dashboard_count_data.py b/test/test_dashboard_count_data.py index 6cde4cd..c30c4b2 100644 --- a/test/test_dashboard_count_data.py +++ b/test/test_dashboard_count_data.py @@ -36,19 +36,19 @@ def make_instance(self, include_optional) -> DashboardCountData: model = DashboardCountData() if include_optional: return DashboardCountData( - subscribers = listmonk_client.models.dashboard_count_data_subscribers.DashboardCount_data_subscribers( + subscribers = listmonk.models.dashboard_count_data_subscribers.DashboardCount_data_subscribers( total = 56, - blocklisted = listmonk_client.models.blocklisted.blocklisted(), + blocklisted = listmonk.models.blocklisted.blocklisted(), orphans = 56, ), - lists = listmonk_client.models.dashboard_count_data_lists.DashboardCount_data_lists( + lists = listmonk.models.dashboard_count_data_lists.DashboardCount_data_lists( total = 56, private = 56, public = 56, optin_single = 56, optin_double = 56, ), - campaigns = listmonk_client.models.dashboard_count_data_campaigns.DashboardCount_data_campaigns( + campaigns = listmonk.models.dashboard_count_data_campaigns.DashboardCount_data_campaigns( total = 56, - by_status = listmonk_client.models.dashboard_count_data_campaigns_by_status.DashboardCount_data_campaigns_by_status( + by_status = listmonk.models.dashboard_count_data_campaigns_by_status.DashboardCount_data_campaigns_by_status( draft = 56, ), ), messages = 56 ) diff --git a/test/test_dashboard_count_data_campaigns.py b/test/test_dashboard_count_data_campaigns.py index 026105a..e93e758 100644 --- a/test/test_dashboard_count_data_campaigns.py +++ b/test/test_dashboard_count_data_campaigns.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> DashboardCountDataCampaigns: if include_optional: return DashboardCountDataCampaigns( total = 56, - by_status = listmonk_client.models.dashboard_count_data_campaigns_by_status.DashboardCount_data_campaigns_by_status( + by_status = listmonk.models.dashboard_count_data_campaigns_by_status.DashboardCount_data_campaigns_by_status( draft = 56, ) ) else: diff --git a/test/test_dashboard_count_data_subscribers.py b/test/test_dashboard_count_data_subscribers.py index ec724fd..707acf0 100644 --- a/test/test_dashboard_count_data_subscribers.py +++ b/test/test_dashboard_count_data_subscribers.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> DashboardCountDataSubscribers: if include_optional: return DashboardCountDataSubscribers( total = 56, - blocklisted = listmonk_client.models.blocklisted.blocklisted(), + blocklisted = listmonk.models.blocklisted.blocklisted(), orphans = 56 ) else: diff --git a/test/test_delete_gc_subscribers200_response.py b/test/test_delete_gc_subscribers200_response.py index 3562a00..89504b6 100644 --- a/test/test_delete_gc_subscribers200_response.py +++ b/test/test_delete_gc_subscribers200_response.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> DeleteGCSubscribers200Response: model = DeleteGCSubscribers200Response() if include_optional: return DeleteGCSubscribers200Response( - data = listmonk_client.models.delete_gc_subscribers_200_response_data.deleteGCSubscribers_200_response_data( + data = listmonk.models.delete_gc_subscribers_200_response_data.deleteGCSubscribers_200_response_data( count = 56, ) ) else: diff --git a/test/test_get_bounce_by_id200_response.py b/test/test_get_bounce_by_id200_response.py index 50fdd08..caaa6fa 100644 --- a/test/test_get_bounce_by_id200_response.py +++ b/test/test_get_bounce_by_id200_response.py @@ -36,18 +36,18 @@ def make_instance(self, include_optional) -> GetBounceById200Response: model = GetBounceById200Response() if include_optional: return GetBounceById200Response( - data = listmonk_client.models.bounce.Bounce( + data = listmonk.models.bounce.Bounce( results = [ - listmonk_client.models.bounce_results_inner.Bounce_results_inner( + listmonk.models.bounce_results_inner.Bounce_results_inner( id = 56, type = '', source = '', - meta = listmonk_client.models.meta.meta(), + meta = listmonk.models.meta.meta(), created_at = '', email = '', subscriber_uuid = '', subscriber_id = 56, - campaign = listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + campaign = listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ), campaign_uuid = '', diff --git a/test/test_get_bounces200_response.py b/test/test_get_bounces200_response.py index 2ad3614..d2cbe4e 100644 --- a/test/test_get_bounces200_response.py +++ b/test/test_get_bounces200_response.py @@ -36,9 +36,9 @@ def make_instance(self, include_optional) -> GetBounces200Response: model = GetBounces200Response() if include_optional: return GetBounces200Response( - data = listmonk_client.models.get_bounces_200_response_data.getBounces_200_response_data( + data = listmonk.models.get_bounces_200_response_data.getBounces_200_response_data( results = [ - listmonk_client.models.bounce.Bounce() + listmonk.models.bounce.Bounce() ], query = '', total = 56, diff --git a/test/test_get_bounces200_response_data.py b/test/test_get_bounces200_response_data.py index df4287d..35088f2 100644 --- a/test/test_get_bounces200_response_data.py +++ b/test/test_get_bounces200_response_data.py @@ -37,18 +37,18 @@ def make_instance(self, include_optional) -> GetBounces200ResponseData: if include_optional: return GetBounces200ResponseData( results = [ - listmonk_client.models.bounce.Bounce( + listmonk.models.bounce.Bounce( results = [ - listmonk_client.models.bounce_results_inner.Bounce_results_inner( + listmonk.models.bounce_results_inner.Bounce_results_inner( id = 56, type = '', source = '', - meta = listmonk_client.models.meta.meta(), + meta = listmonk.models.meta.meta(), created_at = '', email = '', subscriber_uuid = '', subscriber_id = 56, - campaign = listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + campaign = listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ), campaign_uuid = '', diff --git a/test/test_get_campaign_analytics200_response.py b/test/test_get_campaign_analytics200_response.py index 7c134b5..01b9e49 100644 --- a/test/test_get_campaign_analytics200_response.py +++ b/test/test_get_campaign_analytics200_response.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetCampaignAnalytics200Response: if include_optional: return GetCampaignAnalytics200Response( data = [ - listmonk_client.models.campaign_analytics_count.CampaignAnalyticsCount( + listmonk.models.campaign_analytics_count.CampaignAnalyticsCount( campaign_id = 56, count = 56, timestamp = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ) diff --git a/test/test_get_campaign_by_id200_response.py b/test/test_get_campaign_by_id200_response.py index fae3784..db6d244 100644 --- a/test/test_get_campaign_by_id200_response.py +++ b/test/test_get_campaign_by_id200_response.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetCampaignById200Response: model = GetCampaignById200Response() if include_optional: return GetCampaignById200Response( - data = listmonk_client.models.campaign.Campaign( + data = listmonk.models.campaign.Campaign( id = 56, created_at = '', updated_at = '', @@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> GetCampaignById200Response: views = 56, clicks = 56, lists = [ - listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ) ], diff --git a/test/test_get_campaigns200_response.py b/test/test_get_campaigns200_response.py index c426fd0..4055299 100644 --- a/test/test_get_campaigns200_response.py +++ b/test/test_get_campaigns200_response.py @@ -36,9 +36,9 @@ def make_instance(self, include_optional) -> GetCampaigns200Response: model = GetCampaigns200Response() if include_optional: return GetCampaigns200Response( - data = listmonk_client.models.get_campaigns_200_response_data.getCampaigns_200_response_data( + data = listmonk.models.get_campaigns_200_response_data.getCampaigns_200_response_data( results = [ - listmonk_client.models.campaign.Campaign( + listmonk.models.campaign.Campaign( id = 56, created_at = '', updated_at = '', @@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> GetCampaigns200Response: views = 56, clicks = 56, lists = [ - listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ) ], diff --git a/test/test_get_campaigns200_response_data.py b/test/test_get_campaigns200_response_data.py index fa5c49f..07485c5 100644 --- a/test/test_get_campaigns200_response_data.py +++ b/test/test_get_campaigns200_response_data.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetCampaigns200ResponseData: if include_optional: return GetCampaigns200ResponseData( results = [ - listmonk_client.models.campaign.Campaign( + listmonk.models.campaign.Campaign( id = 56, created_at = '', updated_at = '', @@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> GetCampaigns200ResponseData: views = 56, clicks = 56, lists = [ - listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ) ], diff --git a/test/test_get_dashboard_charts200_response.py b/test/test_get_dashboard_charts200_response.py index 790878f..a683c55 100644 --- a/test/test_get_dashboard_charts200_response.py +++ b/test/test_get_dashboard_charts200_response.py @@ -36,14 +36,14 @@ def make_instance(self, include_optional) -> GetDashboardCharts200Response: model = GetDashboardCharts200Response() if include_optional: return GetDashboardCharts200Response( - data = listmonk_client.models.dashboard_chart.DashboardChart( + data = listmonk.models.dashboard_chart.DashboardChart( link_clicks = [ - listmonk_client.models.dashboard_chart_link_clicks_inner.DashboardChart_link_clicks_inner( + listmonk.models.dashboard_chart_link_clicks_inner.DashboardChart_link_clicks_inner( count = 56, date = '', ) ], campaign_views = [ - listmonk_client.models.dashboard_chart_link_clicks_inner.DashboardChart_link_clicks_inner( + listmonk.models.dashboard_chart_link_clicks_inner.DashboardChart_link_clicks_inner( count = 56, date = '', ) ], ) diff --git a/test/test_get_dashboard_counts200_response.py b/test/test_get_dashboard_counts200_response.py index cfb1b98..4b8d6c5 100644 --- a/test/test_get_dashboard_counts200_response.py +++ b/test/test_get_dashboard_counts200_response.py @@ -36,21 +36,21 @@ def make_instance(self, include_optional) -> GetDashboardCounts200Response: model = GetDashboardCounts200Response() if include_optional: return GetDashboardCounts200Response( - data = listmonk_client.models.dashboard_count.DashboardCount( - data = listmonk_client.models.dashboard_count_data.DashboardCount_data( - subscribers = listmonk_client.models.dashboard_count_data_subscribers.DashboardCount_data_subscribers( + data = listmonk.models.dashboard_count.DashboardCount( + data = listmonk.models.dashboard_count_data.DashboardCount_data( + subscribers = listmonk.models.dashboard_count_data_subscribers.DashboardCount_data_subscribers( total = 56, - blocklisted = listmonk_client.models.blocklisted.blocklisted(), + blocklisted = listmonk.models.blocklisted.blocklisted(), orphans = 56, ), - lists = listmonk_client.models.dashboard_count_data_lists.DashboardCount_data_lists( + lists = listmonk.models.dashboard_count_data_lists.DashboardCount_data_lists( total = 56, private = 56, public = 56, optin_single = 56, optin_double = 56, ), - campaigns = listmonk_client.models.dashboard_count_data_campaigns.DashboardCount_data_campaigns( + campaigns = listmonk.models.dashboard_count_data_campaigns.DashboardCount_data_campaigns( total = 56, - by_status = listmonk_client.models.dashboard_count_data_campaigns_by_status.DashboardCount_data_campaigns_by_status( + by_status = listmonk.models.dashboard_count_data_campaigns_by_status.DashboardCount_data_campaigns_by_status( draft = 56, ), ), messages = 56, ), ) ) diff --git a/test/test_get_i18n_lang200_response.py b/test/test_get_i18n_lang200_response.py index ecc6578..6f4a5ee 100644 --- a/test/test_get_i18n_lang200_response.py +++ b/test/test_get_i18n_lang200_response.py @@ -36,8 +36,8 @@ def make_instance(self, include_optional) -> GetI18nLang200Response: model = GetI18nLang200Response() if include_optional: return GetI18nLang200Response( - data = listmonk_client.models.language_pack.LanguagePack( - data = listmonk_client.models.language_pack_data.LanguagePack_data( + data = listmonk.models.language_pack.LanguagePack( + data = listmonk.models.language_pack_data.LanguagePack_data( _/code = '', _/name = '', admin/error_marshalling_config = '', diff --git a/test/test_get_import_subscribers200_response.py b/test/test_get_import_subscribers200_response.py index b0de78e..afe6c25 100644 --- a/test/test_get_import_subscribers200_response.py +++ b/test/test_get_import_subscribers200_response.py @@ -36,8 +36,8 @@ def make_instance(self, include_optional) -> GetImportSubscribers200Response: model = GetImportSubscribers200Response() if include_optional: return GetImportSubscribers200Response( - data = listmonk_client.models.import_status.ImportStatus( - data = listmonk_client.models.import_status_data.ImportStatus_data( + data = listmonk.models.import_status.ImportStatus( + data = listmonk.models.import_status_data.ImportStatus_data( name = '', total = 56, imported = 56, diff --git a/test/test_get_lists200_response.py b/test/test_get_lists200_response.py index 6661fb9..6a7adc0 100644 --- a/test/test_get_lists200_response.py +++ b/test/test_get_lists200_response.py @@ -36,9 +36,9 @@ def make_instance(self, include_optional) -> GetLists200Response: model = GetLists200Response() if include_optional: return GetLists200Response( - data = listmonk_client.models.get_lists_200_response_data.getLists_200_response_data( + data = listmonk.models.get_lists_200_response_data.getLists_200_response_data( results = [ - listmonk_client.models.list.List( + listmonk.models.list.List( id = 56, created_at = '', updated_at = '', diff --git a/test/test_get_lists200_response_data.py b/test/test_get_lists200_response_data.py index 69ee1ea..f5440aa 100644 --- a/test/test_get_lists200_response_data.py +++ b/test/test_get_lists200_response_data.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetLists200ResponseData: if include_optional: return GetLists200ResponseData( results = [ - listmonk_client.models.list.List( + listmonk.models.list.List( id = 56, created_at = '', updated_at = '', diff --git a/test/test_get_media200_response.py b/test/test_get_media200_response.py index 7385f3b..ec41bb9 100644 --- a/test/test_get_media200_response.py +++ b/test/test_get_media200_response.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetMedia200Response: if include_optional: return GetMedia200Response( data = [ - listmonk_client.models.media_file_object.MediaFileObject( + listmonk.models.media_file_object.MediaFileObject( id = 56, uuid = '', filename = '', diff --git a/test/test_get_running_campaign_stats200_response.py b/test/test_get_running_campaign_stats200_response.py index 0ef438d..a5d4f71 100644 --- a/test/test_get_running_campaign_stats200_response.py +++ b/test/test_get_running_campaign_stats200_response.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetRunningCampaignStats200Response: if include_optional: return GetRunningCampaignStats200Response( data = [ - listmonk_client.models.campaign_stats.CampaignStats( + listmonk.models.campaign_stats.CampaignStats( id = 56, status = '', to_send = 56, diff --git a/test/test_get_server_config200_response.py b/test/test_get_server_config200_response.py index 5ed0821..66d0ff6 100644 --- a/test/test_get_server_config200_response.py +++ b/test/test_get_server_config200_response.py @@ -36,13 +36,13 @@ def make_instance(self, include_optional) -> GetServerConfig200Response: model = GetServerConfig200Response() if include_optional: return GetServerConfig200Response( - data = listmonk_client.models.server_config.ServerConfig( - data = listmonk_client.models.server_config_data.ServerConfig_data( + data = listmonk.models.server_config.ServerConfig( + data = listmonk.models.server_config_data.ServerConfig_data( messengers = [ '' ], langs = [ - listmonk_client.models.server_config_data_langs_inner.ServerConfig_data_langs_inner( + listmonk.models.server_config_data_langs_inner.ServerConfig_data_langs_inner( code = '', name = '', ) ], diff --git a/test/test_get_settings200_response.py b/test/test_get_settings200_response.py index 693c1c7..aa46956 100644 --- a/test/test_get_settings200_response.py +++ b/test/test_get_settings200_response.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetSettings200Response: model = GetSettings200Response() if include_optional: return GetSettings200Response( - data = listmonk_client.models.settings.Settings( + data = listmonk.models.settings.Settings( app/site_name = '', app/root_url = '', app/logo_url = '', @@ -82,7 +82,7 @@ def make_instance(self, include_optional) -> GetSettings200Response: upload/s3/bucket_type = '', upload/s3/expiry = '', smtp = [ - listmonk_client.models.smtp_settings.SMTPSettings( + listmonk.models.smtp_settings.SMTPSettings( uuid = '', enabled = True, host = '', @@ -114,7 +114,7 @@ def make_instance(self, include_optional) -> GetSettings200Response: bounce/postmark_username = '', bounce/postmark_password = '', bounce/mailboxes = [ - listmonk_client.models.mail_box_bounces.MailBoxBounces( + listmonk.models.mail_box_bounces.MailBoxBounces( uuid = '', enabled = True, type = '', diff --git a/test/test_get_subscriber_bounces_by_id200_response.py b/test/test_get_subscriber_bounces_by_id200_response.py index 5999020..1a2dda0 100644 --- a/test/test_get_subscriber_bounces_by_id200_response.py +++ b/test/test_get_subscriber_bounces_by_id200_response.py @@ -37,18 +37,18 @@ def make_instance(self, include_optional) -> GetSubscriberBouncesById200Response if include_optional: return GetSubscriberBouncesById200Response( data = [ - listmonk_client.models.bounce.Bounce( + listmonk.models.bounce.Bounce( results = [ - listmonk_client.models.bounce_results_inner.Bounce_results_inner( + listmonk.models.bounce_results_inner.Bounce_results_inner( id = 56, type = '', source = '', - meta = listmonk_client.models.meta.meta(), + meta = listmonk.models.meta.meta(), created_at = '', email = '', subscriber_uuid = '', subscriber_id = 56, - campaign = listmonk_client.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( + campaign = listmonk.models.bounce_results_inner_campaign.Bounce_results_inner_campaign( id = 56, name = '', ), campaign_uuid = '', diff --git a/test/test_get_subscribers200_response.py b/test/test_get_subscribers200_response.py index 17ce65f..4614a57 100644 --- a/test/test_get_subscribers200_response.py +++ b/test/test_get_subscribers200_response.py @@ -36,22 +36,22 @@ def make_instance(self, include_optional) -> GetSubscribers200Response: model = GetSubscribers200Response() if include_optional: return GetSubscribers200Response( - data = listmonk_client.models.get_subscribers_200_response_data.getSubscribers_200_response_data( + data = listmonk.models.get_subscribers_200_response_data.getSubscribers_200_response_data( results = [ - listmonk_client.models.subscriber.Subscriber( + listmonk.models.subscriber.Subscriber( id = 56, created_at = '', updated_at = '', uuid = '', email = '', name = '', - attribs = listmonk_client.models.subscriber_profile_attribs.SubscriberProfile_attribs( + attribs = listmonk.models.subscriber_profile_attribs.SubscriberProfile_attribs( city = '', good = True, type = '', ), status = '', lists = [ - listmonk_client.models.subscriber_lists_inner.Subscriber_lists_inner( + listmonk.models.subscriber_lists_inner.Subscriber_lists_inner( subscription_status = '', id = 56, uuid = '', diff --git a/test/test_get_subscribers200_response_data.py b/test/test_get_subscribers200_response_data.py index de53175..1ce3ca5 100644 --- a/test/test_get_subscribers200_response_data.py +++ b/test/test_get_subscribers200_response_data.py @@ -37,20 +37,20 @@ def make_instance(self, include_optional) -> GetSubscribers200ResponseData: if include_optional: return GetSubscribers200ResponseData( results = [ - listmonk_client.models.subscriber.Subscriber( + listmonk.models.subscriber.Subscriber( id = 56, created_at = '', updated_at = '', uuid = '', email = '', name = '', - attribs = listmonk_client.models.subscriber_profile_attribs.SubscriberProfile_attribs( + attribs = listmonk.models.subscriber_profile_attribs.SubscriberProfile_attribs( city = '', good = True, type = '', ), status = '', lists = [ - listmonk_client.models.subscriber_lists_inner.Subscriber_lists_inner( + listmonk.models.subscriber_lists_inner.Subscriber_lists_inner( subscription_status = '', id = 56, uuid = '', diff --git a/test/test_get_template_by_id200_response.py b/test/test_get_template_by_id200_response.py index 3fa03a3..3a352d9 100644 --- a/test/test_get_template_by_id200_response.py +++ b/test/test_get_template_by_id200_response.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> GetTemplateById200Response: model = GetTemplateById200Response() if include_optional: return GetTemplateById200Response( - data = listmonk_client.models.template.Template( + data = listmonk.models.template.Template( id = 56, created_at = '', updated_at = '', diff --git a/test/test_get_templates200_response.py b/test/test_get_templates200_response.py index ade5c56..d31b1bf 100644 --- a/test/test_get_templates200_response.py +++ b/test/test_get_templates200_response.py @@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> GetTemplates200Response: if include_optional: return GetTemplates200Response( data = [ - listmonk_client.models.template.Template( + listmonk.models.template.Template( id = 56, created_at = '', updated_at = '', diff --git a/test/test_import_status.py b/test/test_import_status.py index 3872f37..17b9130 100644 --- a/test/test_import_status.py +++ b/test/test_import_status.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> ImportStatus: model = ImportStatus() if include_optional: return ImportStatus( - data = listmonk_client.models.import_status_data.ImportStatus_data( + data = listmonk.models.import_status_data.ImportStatus_data( name = '', total = 56, imported = 56, diff --git a/test/test_language_pack.py b/test/test_language_pack.py index a467ac6..2d5571f 100644 --- a/test/test_language_pack.py +++ b/test/test_language_pack.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> LanguagePack: model = LanguagePack() if include_optional: return LanguagePack( - data = listmonk_client.models.language_pack_data.LanguagePack_data( + data = listmonk.models.language_pack_data.LanguagePack_data( _/code = '', _/name = '', admin/error_marshalling_config = '', diff --git a/test/test_new_subscriber.py b/test/test_new_subscriber.py index 030b90a..175f232 100644 --- a/test/test_new_subscriber.py +++ b/test/test_new_subscriber.py @@ -46,10 +46,10 @@ def make_instance(self, include_optional) -> NewSubscriber: '' ], preconfirm_subscriptions = True, - attribs = listmonk_client.models.new_subscriber_attribs.NewSubscriber_attribs( + attribs = listmonk.models.new_subscriber_attribs.NewSubscriber_attribs( city = '', projects = 56, - stack = listmonk_client.models.new_subscriber_attribs_stack.NewSubscriber_attribs_stack( + stack = listmonk.models.new_subscriber_attribs_stack.NewSubscriber_attribs_stack( languages = [ '' ], ), ) diff --git a/test/test_new_subscriber_attribs.py b/test/test_new_subscriber_attribs.py index d5d99e0..46f96da 100644 --- a/test/test_new_subscriber_attribs.py +++ b/test/test_new_subscriber_attribs.py @@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> NewSubscriberAttribs: return NewSubscriberAttribs( city = '', projects = 56, - stack = listmonk_client.models.new_subscriber_attribs_stack.NewSubscriber_attribs_stack( + stack = listmonk.models.new_subscriber_attribs_stack.NewSubscriber_attribs_stack( languages = [ '' ], ) diff --git a/test/test_server_config.py b/test/test_server_config.py index 9fed0b6..4afd830 100644 --- a/test/test_server_config.py +++ b/test/test_server_config.py @@ -36,12 +36,12 @@ def make_instance(self, include_optional) -> ServerConfig: model = ServerConfig() if include_optional: return ServerConfig( - data = listmonk_client.models.server_config_data.ServerConfig_data( + data = listmonk.models.server_config_data.ServerConfig_data( messengers = [ '' ], langs = [ - listmonk_client.models.server_config_data_langs_inner.ServerConfig_data_langs_inner( + listmonk.models.server_config_data_langs_inner.ServerConfig_data_langs_inner( code = '', name = '', ) ], diff --git a/test/test_server_config_data.py b/test/test_server_config_data.py index ef21067..cc69219 100644 --- a/test/test_server_config_data.py +++ b/test/test_server_config_data.py @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> ServerConfigData: '' ], langs = [ - listmonk_client.models.server_config_data_langs_inner.ServerConfig_data_langs_inner( + listmonk.models.server_config_data_langs_inner.ServerConfig_data_langs_inner( code = '', name = '', ) ], diff --git a/test/test_settings.py b/test/test_settings.py index 3a131cb..5744e91 100644 --- a/test/test_settings.py +++ b/test/test_settings.py @@ -81,7 +81,7 @@ def make_instance(self, include_optional) -> Settings: upload_s3_bucket_type = '', upload_s3_expiry = '', smtp = [ - listmonk_client.models.smtp_settings.SMTPSettings( + listmonk.models.smtp_settings.SMTPSettings( uuid = '', enabled = True, host = '', @@ -113,7 +113,7 @@ def make_instance(self, include_optional) -> Settings: bounce_postmark_username = '', bounce_postmark_password = '', bounce_mailboxes = [ - listmonk_client.models.mail_box_bounces.MailBoxBounces( + listmonk.models.mail_box_bounces.MailBoxBounces( uuid = '', enabled = True, type = '', diff --git a/test/test_subscriber.py b/test/test_subscriber.py index 226128b..f0a2acd 100644 --- a/test/test_subscriber.py +++ b/test/test_subscriber.py @@ -42,13 +42,13 @@ def make_instance(self, include_optional) -> Subscriber: uuid = '', email = '', name = '', - attribs = listmonk_client.models.subscriber_profile_attribs.SubscriberProfile_attribs( + attribs = listmonk.models.subscriber_profile_attribs.SubscriberProfile_attribs( city = '', good = True, type = '', ), status = '', lists = [ - listmonk_client.models.subscriber_lists_inner.Subscriber_lists_inner( + listmonk.models.subscriber_lists_inner.Subscriber_lists_inner( subscription_status = '', id = 56, uuid = '', diff --git a/test/test_subscriber_data.py b/test/test_subscriber_data.py index e66235f..c42e0ec 100644 --- a/test/test_subscriber_data.py +++ b/test/test_subscriber_data.py @@ -38,12 +38,12 @@ def make_instance(self, include_optional) -> SubscriberData: return SubscriberData( email = '', profile = [ - listmonk_client.models.subscriber_profile.SubscriberProfile( + listmonk.models.subscriber_profile.SubscriberProfile( id = 56, uuid = '', email = '', name = '', - attribs = listmonk_client.models.subscriber_profile_attribs.SubscriberProfile_attribs( + attribs = listmonk.models.subscriber_profile_attribs.SubscriberProfile_attribs( city = '', good = True, type = '', ), @@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> SubscriberData: updated_at = '', ) ], subscriptions = [ - listmonk_client.models.subscriptions.Subscriptions( + listmonk.models.subscriptions.Subscriptions( subscription_status = '', name = '', type = '', diff --git a/test/test_subscriber_profile.py b/test/test_subscriber_profile.py index bbc82a0..bd831a2 100644 --- a/test/test_subscriber_profile.py +++ b/test/test_subscriber_profile.py @@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> SubscriberProfile: uuid = '', email = '', name = '', - attribs = listmonk_client.models.subscriber_profile_attribs.SubscriberProfile_attribs( + attribs = listmonk.models.subscriber_profile_attribs.SubscriberProfile_attribs( city = '', good = True, type = '', ), diff --git a/test/test_update_subscriber.py b/test/test_update_subscriber.py index 74f0ec5..10a8976 100644 --- a/test/test_update_subscriber.py +++ b/test/test_update_subscriber.py @@ -46,10 +46,10 @@ def make_instance(self, include_optional) -> UpdateSubscriber: '' ], preconfirm_subscriptions = True, - attribs = listmonk_client.models.new_subscriber_attribs.NewSubscriber_attribs( + attribs = listmonk.models.new_subscriber_attribs.NewSubscriber_attribs( city = '', projects = 56, - stack = listmonk_client.models.new_subscriber_attribs_stack.NewSubscriber_attribs_stack( + stack = listmonk.models.new_subscriber_attribs_stack.NewSubscriber_attribs_stack( languages = [ '' ], ), ) diff --git a/test/test_upload_media200_response.py b/test/test_upload_media200_response.py index e3bb374..d561636 100644 --- a/test/test_upload_media200_response.py +++ b/test/test_upload_media200_response.py @@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> UploadMedia200Response: model = UploadMedia200Response() if include_optional: return UploadMedia200Response( - data = listmonk_client.models.media_file_object.MediaFileObject( + data = listmonk.models.media_file_object.MediaFileObject( id = 56, uuid = '', filename = '',