diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 4b6cc79..25b31cc 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,7 +1,7 @@ [bumpversion] commit = False tag = False -current_version = 0.3.1 +current_version = 0.4.0 [bumpversion:file:setup.cfg] diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 9805ab1..88145d5 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,14 @@ Changelog ========= +0.4.0 (2024-12-12) +------------------ + +* Added an `identifier` field to the ``Subscription`` model +* Introduced support for ``django-setup-configuration`` and added two + ``ConfigurationStep`` implementations: ``NotificationConfigurationStep`` and + ``NotificationSubscriptionConfigurationStep`` + 0.3.1 (2024-10-27) ------------------ diff --git a/README.rst b/README.rst index 4cfbbb8..b479fb5 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ notifications-api-common ======================== -:Version: 0.3.1 +:Version: 0.4.0 :Source: https://github.com/maykinmedia/notifications-api-common :Keywords: notifications, REST, API, Common Ground, ZGW :PythonVersion: 3.10 diff --git a/docs/conf.py b/docs/conf.py index 68a8585..4099bce 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -26,7 +26,7 @@ author = "Maykin Media" # The full version, including alpha/beta/rc tags -release = "0.3.1" +release = "0.4.0" # -- General configuration --------------------------------------------------- diff --git a/notifications_api_common/locale/en/LC_MESSAGES/django.mo b/notifications_api_common/locale/en/LC_MESSAGES/django.mo index b77f8ae..f89ea47 100644 Binary files a/notifications_api_common/locale/en/LC_MESSAGES/django.mo and b/notifications_api_common/locale/en/LC_MESSAGES/django.mo differ diff --git a/notifications_api_common/locale/en/LC_MESSAGES/django.po b/notifications_api_common/locale/en/LC_MESSAGES/django.po index c2809a1..513231a 100644 --- a/notifications_api_common/locale/en/LC_MESSAGES/django.po +++ b/notifications_api_common/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.3.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-14 13:45+0100\n" +"POT-Creation-Date: 2024-12-12 15:28+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,7 +18,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: admin.py:27 +#: admin.py:26 #, python-brace-format msgid "" "Something went wrong while registering subscription for {callback}: " @@ -27,7 +27,7 @@ msgstr "" "Something went wrong while registering subscription for {callback}: " "{exception}" -#: admin.py:33 +#: admin.py:32 msgid "Register the webhooks" msgstr "Register the webhooks" @@ -115,11 +115,11 @@ msgstr "" msgid "Notifications API integration" msgstr "Notifications API integration" -#: models.py:19 +#: models.py:20 msgid "notifications api service" msgstr "notifications api service" -#: models.py:26 +#: models.py:27 msgid "" "The maximum number of automatic retries. After this amount of retries, " "guaranteed delivery stops trying to deliver the message." @@ -127,7 +127,7 @@ msgstr "" "The maximum number of automatic retries. After this amount of retries, " "guaranteed delivery stops trying to deliver the message." -#: models.py:33 +#: models.py:34 msgid "" "If specified, a factor applied to the exponential backoff. This allows you " "to tune how quickly automatic retries are performed." @@ -135,68 +135,72 @@ msgstr "" "If specified, a factor applied to the exponential backoff. This allows you " "to tune how quickly automatic retries are performed." -#: models.py:39 +#: models.py:40 msgid "An upper limit in seconds to the exponential backoff time." msgstr "An upper limit in seconds to the exponential backoff time." -#: models.py:46 +#: models.py:47 msgid "Notificatiescomponentconfiguratie" msgstr "Notifications component configuration" -#: models.py:52 +#: models.py:53 msgid "no service configured" msgstr "no service configured" -#: models.py:54 +#: models.py:55 #, python-brace-format msgid "Notifications API configuration ({api_root})" msgstr "Notifications API configuration ({api_root})" -#: models.py:77 +#: models.py:84 +msgid "A human-friendly identifier to refer to this subscription." +msgstr "" + +#: models.py:87 msgid "callback url" msgstr "callback url" -#: models.py:77 +#: models.py:87 msgid "Where to send the notifications (webhook url)" msgstr "Where to send the notifications (webhook url)" -#: models.py:80 +#: models.py:90 msgid "client ID" msgstr "client ID" -#: models.py:82 +#: models.py:92 msgid "Client ID to construct the auth token" msgstr "Client ID to construct the auth token" -#: models.py:85 +#: models.py:95 msgid "client secret" msgstr "client secret" -#: models.py:87 +#: models.py:97 msgid "Secret to construct the auth token" msgstr "Secret to construct the auth token" -#: models.py:91 +#: models.py:101 msgid "channels" msgstr "channels" -#: models.py:92 +#: models.py:102 msgid "Comma-separated list of channels to subscribe to" msgstr "Comma-separated list of channels to subscribe to" -#: models.py:96 +#: models.py:106 msgid "NC subscription" msgstr "Notifications API subscription" -#: models.py:99 +#: models.py:109 msgid "Subscription as it is known in the NC" msgstr "Subscription as it is known in the Notifications API" -#: models.py:103 +#: models.py:113 msgid "Webhook subscription" msgstr "Webhook subscription" -#: models.py:104 +#: models.py:114 msgid "Webhook subscriptions" msgstr "Webhook subscriptions" diff --git a/notifications_api_common/locale/nl/LC_MESSAGES/django.mo b/notifications_api_common/locale/nl/LC_MESSAGES/django.mo index 0bc27ec..df985a0 100644 Binary files a/notifications_api_common/locale/nl/LC_MESSAGES/django.mo and b/notifications_api_common/locale/nl/LC_MESSAGES/django.mo differ diff --git a/notifications_api_common/locale/nl/LC_MESSAGES/django.po b/notifications_api_common/locale/nl/LC_MESSAGES/django.po index d7d8d85..730b4a9 100644 --- a/notifications_api_common/locale/nl/LC_MESSAGES/django.po +++ b/notifications_api_common/locale/nl/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.3.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-12-14 13:45+0100\n" +"POT-Creation-Date: 2024-12-12 15:28+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -18,7 +18,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" -#: admin.py:27 +#: admin.py:26 #, python-brace-format msgid "" "Something went wrong while registering subscription for {callback}: " @@ -27,7 +27,7 @@ msgstr "" "Er ging iets fout bij het registreren van een abonnement voor {callback}:" "{exception}" -#: admin.py:33 +#: admin.py:32 msgid "Register the webhooks" msgstr "Webhooks registreren" @@ -115,88 +115,92 @@ msgstr "" msgid "Notifications API integration" msgstr "Integratie Notificaties-API" -#: models.py:19 +#: models.py:20 msgid "notifications api service" msgstr "service voor notificaties-api" -#: models.py:26 +#: models.py:27 msgid "" "The maximum number of automatic retries. After this amount of retries, " "guaranteed delivery stops trying to deliver the message." msgstr "" -"De bovengrens voor het aantal automatische pogingen tot opnieuw verzenden. Na deze " -"hoeveelheid pogingen stoppen de automatische afleverpogingen." +"De bovengrens voor het aantal automatische pogingen tot opnieuw verzenden. " +"Na deze hoeveelheid pogingen stoppen de automatische afleverpogingen." -#: models.py:33 +#: models.py:34 msgid "" "If specified, a factor applied to the exponential backoff. This allows you " "to tune how quickly automatic retries are performed." msgstr "" -"Indien opgegeven wordt deze factor toegepast op de exponentiële vertraging. Dit laat " -"toe om de frequentie van afleverpogingen in te stellen." +"Indien opgegeven wordt deze factor toegepast op de exponentiële vertraging. " +"Dit laat toe om de frequentie van afleverpogingen in te stellen." -#: models.py:39 +#: models.py:40 msgid "An upper limit in seconds to the exponential backoff time." msgstr "Een bovenlimiet in seconden voor de maximale exponentiële vertraging." -#: models.py:46 +#: models.py:47 msgid "Notificatiescomponentconfiguratie" msgstr "Notificatiescomponentconfiguratie" -#: models.py:52 +#: models.py:53 msgid "no service configured" msgstr "geen service ingesteld" -#: models.py:54 +#: models.py:55 #, python-brace-format msgid "Notifications API configuration ({api_root})" msgstr "Notificaties-API-configuratie ({api_root})" -#: models.py:77 +#: models.py:84 +msgid "A human-friendly identifier to refer to this subscription." +msgstr "Een voor mensen bedoelde kenmerkende naam om naar dit abonnement te verwijzen." + +#: models.py:87 msgid "callback url" msgstr "callback-url" -#: models.py:77 +#: models.py:87 msgid "Where to send the notifications (webhook url)" msgstr "Waar de notificaties gepubliceerd moeten worden (webhook-url)" -#: models.py:80 +#: models.py:90 msgid "client ID" msgstr "client-ID" -#: models.py:82 +#: models.py:92 msgid "Client ID to construct the auth token" msgstr "Client-ID om het autorisatietoken mee te genereren" -#: models.py:85 +#: models.py:95 msgid "client secret" msgstr "client-secret" -#: models.py:87 +#: models.py:97 msgid "Secret to construct the auth token" msgstr "Secret om het autorisatietoken mee te genereren" -#: models.py:91 +#: models.py:101 msgid "channels" msgstr "kanalen" -#: models.py:92 +#: models.py:102 msgid "Comma-separated list of channels to subscribe to" msgstr "Kommagescheiden lijst van kanalen om op te abonneren" -#: models.py:96 +#: models.py:106 msgid "NC subscription" msgstr "Notificaties-API-abonnement" -#: models.py:99 +#: models.py:109 msgid "Subscription as it is known in the NC" msgstr "Abonnement zoals die bekend is in de Notificaties-API" -#: models.py:103 +#: models.py:113 msgid "Webhook subscription" msgstr "Webhook-abonnement" -#: models.py:104 +#: models.py:114 msgid "Webhook subscriptions" msgstr "Webhook-abonnementen" diff --git a/setup.cfg b/setup.cfg index 8293a4e..6fd15ee 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,7 +2,7 @@ # see http://setuptools.readthedocs.io/en/latest/setuptools.html#configuring-setup-using-setup-cfg-files [metadata] name = notifications-api-common -version = 0.3.1 +version = 0.4.0 description = Re-usable integration layer for the Common Ground Notifications API specification. long_description = file: README.rst url = https://github.com/maykinmedia/notifications-api-common