commonground-api-common 1.13.0__tar.gz → 1.13.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. commonground_api_common-1.13.2/CHANGELOG.rst +23 -0
  2. {commonground-api-common-1.13.0/commonground_api_common.egg-info → commonground_api_common-1.13.2}/PKG-INFO +1 -1
  3. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2/commonground_api_common.egg-info}/PKG-INFO +1 -1
  4. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/commonground_api_common.egg-info/SOURCES.txt +1 -0
  5. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/setup.cfg +1 -1
  6. commonground_api_common-1.13.2/vng_api_common/__init__.py +1 -0
  7. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/models.py +24 -0
  8. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/models.py +10 -0
  9. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/api/views.py +4 -4
  10. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/validators.py +7 -2
  11. commonground-api-common-1.13.0/vng_api_common/__init__.py +0 -1
  12. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/MANIFEST.in +0 -0
  13. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/README.rst +0 -0
  14. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/bin/generate_schema +0 -0
  15. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/bin/patch_content_types +0 -0
  16. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/bin/use_external_components +0 -0
  17. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/commonground_api_common.egg-info/dependency_links.txt +0 -0
  18. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/commonground_api_common.egg-info/not-zip-safe +0 -0
  19. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/commonground_api_common.egg-info/requires.txt +0 -0
  20. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/commonground_api_common.egg-info/top_level.txt +0 -0
  21. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/pyproject.toml +0 -0
  22. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/setup.py +0 -0
  23. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_autorisatie_validation.py +0 -0
  24. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_cache_headers.py +0 -0
  25. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_check_query_params.py +0 -0
  26. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_checks.py +0 -0
  27. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_choices.py +0 -0
  28. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_config.py +0 -0
  29. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_content_type_headers.py +0 -0
  30. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_filters.py +0 -0
  31. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_gegevensgroepen.py +0 -0
  32. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_get_resource.py +0 -0
  33. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_jwt_decoding.py +0 -0
  34. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_jwtsecrets.py +0 -0
  35. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_nested_serializer_validation.py +0 -0
  36. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_permissions.py +0 -0
  37. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_publish_validator.py +0 -0
  38. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_schema_root_tags.py +0 -0
  39. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_server_errors.py +0 -0
  40. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_utils.py +0 -0
  41. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_validators.py +0 -0
  42. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/tests/test_views.py +0 -0
  43. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/admin.py +0 -0
  44. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/api/__init__.py +0 -0
  45. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/api/permissions.py +0 -0
  46. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/api/serializers.py +0 -0
  47. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/api/urls.py +0 -0
  48. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/api/views.py +0 -0
  49. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/apps.py +0 -0
  50. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/__init__.py +0 -0
  51. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/admin.py +0 -0
  52. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/api/__init__.py +0 -0
  53. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/api/scopes.py +0 -0
  54. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/api/serializers.py +0 -0
  55. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/apps.py +0 -0
  56. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/audits.py +0 -0
  57. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0001_initial.py +0 -0
  58. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0002_auto_20190516_0830.py +0 -0
  59. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0003_auto_20190517_0844.py +0 -0
  60. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0004_auto_20190520_1238.py +0 -0
  61. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0005_auto_20190520_1450.py +0 -0
  62. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0006_audittrail_toelichting.py +0 -0
  63. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0007_auto_20190522_0916.py +0 -0
  64. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0008_audittrail_resource_weergave.py +0 -0
  65. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0009_auto_20190712_1643.py +0 -0
  66. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0010_audittrail_request_id.py +0 -0
  67. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0011_auto_20190918_1335.py +0 -0
  68. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0012_auto_20200619_0545.py +0 -0
  69. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0012_remove_audittrail_request_id.py +0 -0
  70. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0013_audittrail_logrecord_id.py +0 -0
  71. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0013_auto_20201207_0846.py +0 -0
  72. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0014_auto_20201221_0905.py +0 -0
  73. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0014_auto_20210323_1654.py +0 -0
  74. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0015_auto_20220318_1608.py +0 -0
  75. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0016_merge_20220607_0517.py +0 -0
  76. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0017_alter_audittrail_bron.py +0 -0
  77. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/0018_auto_20221212_0745.py +0 -0
  78. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/__init__.py +0 -0
  79. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/migrations/_operations.py +0 -0
  80. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/models.py +0 -0
  81. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/audittrails/viewsets.py +0 -0
  82. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/__init__.py +0 -0
  83. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/admin.py +0 -0
  84. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0001_initial.py +0 -0
  85. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0002_authorizationsconfig.py +0 -0
  86. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0003_auto_20190502_0409.py +0 -0
  87. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0004_auto_20190503_0941.py +0 -0
  88. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0005_auto_20190506_0842.py +0 -0
  89. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0006_auto_20190506_0901.py +0 -0
  90. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0007_auto_20190506_1212.py +0 -0
  91. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0008_auto_20190712_1541.py +0 -0
  92. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0009_update_enums.py +0 -0
  93. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0010_auto_20190712_1643.py +0 -0
  94. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0011_auto_20191114_0728.py +0 -0
  95. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0012_auto_20200619_0545.py +0 -0
  96. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0013_auto_20201207_0846.py +0 -0
  97. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0014_auto_20201221_0905.py +0 -0
  98. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/0015_auto_20220318_1608.py +0 -0
  99. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/migrations/__init__.py +0 -0
  100. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/serializers.py +0 -0
  101. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/authorizations/validators.py +0 -0
  102. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/caching/__init__.py +0 -0
  103. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/caching/decorators.py +0 -0
  104. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/caching/etags.py +0 -0
  105. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/caching/introspection.py +0 -0
  106. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/caching/models.py +0 -0
  107. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/caching/registry.py +0 -0
  108. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/caching/signals.py +0 -0
  109. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/checks.py +0 -0
  110. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/choices.py +0 -0
  111. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/client.py +0 -0
  112. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/compat.py +0 -0
  113. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/conf/__init__.py +0 -0
  114. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/conf/api.py +0 -0
  115. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/constants.py +0 -0
  116. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/db/__init__.py +0 -0
  117. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/db/operations.py +0 -0
  118. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/decorators.py +0 -0
  119. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/descriptors.py +0 -0
  120. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/doc.py +0 -0
  121. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/exception_handling.py +0 -0
  122. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/exceptions.py +0 -0
  123. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/fields.py +0 -0
  124. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/filters.py +0 -0
  125. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/filtersets.py +0 -0
  126. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/generators.py +0 -0
  127. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/geo.py +0 -0
  128. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/inspectors/__init__.py +0 -0
  129. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/inspectors/cache.py +0 -0
  130. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/inspectors/fields.py +0 -0
  131. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/inspectors/files.py +0 -0
  132. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/inspectors/geojson.py +0 -0
  133. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/inspectors/polymorphic.py +0 -0
  134. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/inspectors/query.py +0 -0
  135. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/inspectors/utils.py +0 -0
  136. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/inspectors/view.py +0 -0
  137. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/locale/nl/LC_MESSAGES/django.mo +0 -0
  138. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/locale/nl/LC_MESSAGES/django.po +0 -0
  139. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/management/__init__.py +0 -0
  140. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/management/commands/__init__.py +0 -0
  141. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/management/commands/generate_autorisaties.py +0 -0
  142. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/management/commands/generate_notificaties.py +0 -0
  143. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/management/commands/generate_swagger.py +0 -0
  144. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/management/commands/patch_error_contenttypes.py +0 -0
  145. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/management/commands/use_external_components.py +0 -0
  146. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/middleware.py +0 -0
  147. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/migrations/0001_initial.py +0 -0
  148. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/migrations/0002_apicredential.py +0 -0
  149. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/migrations/0003_auto_20190417_1145.py +0 -0
  150. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/migrations/0004_auto_20190517_0903.py +0 -0
  151. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/migrations/0005_auto_20190614_1346.py +0 -0
  152. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/migrations/__init__.py +0 -0
  153. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/mocks.py +0 -0
  154. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/__init__.py +0 -0
  155. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/api/__init__.py +0 -0
  156. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/api/urls.py +0 -0
  157. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/apps.py +0 -0
  158. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/constants.py +0 -0
  159. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/handlers.py +0 -0
  160. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0001_initial.py +0 -0
  161. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0002_subscription__subscription.py +0 -0
  162. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0003_auto_20190319_1048.py +0 -0
  163. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0004_auto_20190325_1313.py +0 -0
  164. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0005_fix_default_nrc.py +0 -0
  165. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0006_auto_20190417_1142.py +0 -0
  166. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0007_auto_20190429_1442.py +0 -0
  167. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0008_auto_20190502_0415.py +0 -0
  168. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0009_auto_20190729_0427.py +0 -0
  169. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/0010_auto_20220704_1419.py +0 -0
  170. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/migrations/__init__.py +0 -0
  171. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/notifications/models.py +0 -0
  172. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/oas.py +0 -0
  173. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/permissions.py +0 -0
  174. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/polymorphism.py +0 -0
  175. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/routers.py +0 -0
  176. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/schema.py +0 -0
  177. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/scopes.py +0 -0
  178. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/search.py +0 -0
  179. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/serializers.py +0 -0
  180. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/css/admin/admin_overrides.css +0 -0
  181. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/css/screen.css +0 -0
  182. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/ico/favicon.png +0 -0
  183. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/img/vng.svg +0 -0
  184. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/LICENSE.txt +0 -0
  185. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/css/all.css +0 -0
  186. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/css/all.min.css +0 -0
  187. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.eot +0 -0
  188. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.svg +0 -0
  189. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.ttf +0 -0
  190. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.woff +0 -0
  191. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  192. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.eot +0 -0
  193. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.svg +0 -0
  194. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.ttf +0 -0
  195. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.woff +0 -0
  196. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  197. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.eot +0 -0
  198. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.svg +0 -0
  199. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.ttf +0 -0
  200. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.woff +0 -0
  201. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  202. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/admin/base_site.html +0 -0
  203. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/api_schema_to_markdown_table.md +0 -0
  204. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/autorisaties.md +0 -0
  205. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/includes/kanalen_card.html +0 -0
  206. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/index.html +0 -0
  207. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/master.html +0 -0
  208. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/notificaties.md +0 -0
  209. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/ref/error_detail.html +0 -0
  210. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/ref/scopes.html +0 -0
  211. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templates/vng_api_common/view_config.html +0 -0
  212. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templatetags/__init__.py +0 -0
  213. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/templatetags/vng_api_common.py +0 -0
  214. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/tests/__init__.py +0 -0
  215. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/tests/auth.py +0 -0
  216. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/tests/caching.py +0 -0
  217. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/tests/schema.py +0 -0
  218. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/tests/urls.py +0 -0
  219. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/urls.py +0 -0
  220. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/utils.py +0 -0
  221. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/version.py +0 -0
  222. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/views.py +0 -0
  223. {commonground-api-common-1.13.0 → commonground_api_common-1.13.2}/vng_api_common/viewsets.py +0 -0
@@ -0,0 +1,23 @@
1
+ ==============
2
+ Change history
3
+ ==============
4
+
5
+ 1.13.2 (2024-07-05)
6
+ -------------------
7
+
8
+ * Added *identificatie* to ``UniekeIdentificatieValidator`` error message
9
+
10
+
11
+ 1.13.1 (2024-05-28)
12
+ -------------------
13
+
14
+ * Marked notifications view scopes as private
15
+ * Added natural keys to authorization models
16
+
17
+
18
+ 1.13.0 (2024-03-01)
19
+ -------------------
20
+
21
+ * Added support of Django 4.2
22
+ * Removed support of Python 3.7
23
+ * Added support of Python 3.11
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: commonground-api-common
3
- Version: 1.13.0
3
+ Version: 1.13.2
4
4
  Summary: Commonground API tooling
5
5
  Home-page: https://github.com/maykinmedia/commonground-api-common
6
6
  Author: Maykin Media, VNG-Realisatie
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: commonground-api-common
3
- Version: 1.13.0
3
+ Version: 1.13.2
4
4
  Summary: Commonground API tooling
5
5
  Home-page: https://github.com/maykinmedia/commonground-api-common
6
6
  Author: Maykin Media, VNG-Realisatie
@@ -1,3 +1,4 @@
1
+ CHANGELOG.rst
1
2
  MANIFEST.in
2
3
  README.rst
3
4
  pyproject.toml
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = commonground-api-common
3
- version = 1.13.0
3
+ version = 1.13.2
4
4
  description = Commonground API tooling
5
5
  long_description = file: README.rst
6
6
  url = https://github.com/maykinmedia/commonground-api-common
@@ -0,0 +1 @@
1
+ __version__ = "1.13.2"
@@ -23,6 +23,11 @@ class AuthorizationsConfig(ClientConfig):
23
23
  verbose_name = _("Autorisatiecomponentconfiguratie")
24
24
 
25
25
 
26
+ class ApplicatieManager(models.Manager):
27
+ def get_by_natural_key(self, uuid):
28
+ return self.get(uuid=uuid)
29
+
30
+
26
31
  class Applicatie(APIMixin, models.Model):
27
32
  """
28
33
  Client level of authorization
@@ -52,10 +57,20 @@ class Applicatie(APIMixin, models.Model):
52
57
  ),
53
58
  )
54
59
 
60
+ objects = ApplicatieManager()
61
+
62
+ def natural_key(self):
63
+ return (str(self.uuid),)
64
+
55
65
  def __str__(self):
56
66
  return f"Applicatie ({self.label})"
57
67
 
58
68
 
69
+ class AutorisatieManager(models.Manager):
70
+ def get_by_natural_key(self, applicatie, component, scopes):
71
+ return self.get(applicatie=applicatie, component=component, scopes=scopes)
72
+
73
+
59
74
  class Autorisatie(APIMixin, models.Model):
60
75
  applicatie = models.ForeignKey(
61
76
  "Applicatie",
@@ -109,6 +124,15 @@ class Autorisatie(APIMixin, models.Model):
109
124
  blank=True,
110
125
  )
111
126
 
127
+ objects = AutorisatieManager()
128
+
129
+ def natural_key(self):
130
+ return (
131
+ self.applicatie,
132
+ self.component,
133
+ self.scopes,
134
+ )
135
+
112
136
  def satisfy_vertrouwelijkheid(self, vertrouwelijkheidaanduiding: str) -> bool:
113
137
  max_confid_level = VertrouwelijkheidsAanduiding.get_choice(
114
138
  self.max_vertrouwelijkheidaanduiding
@@ -34,6 +34,11 @@ class APIMixin:
34
34
  return url
35
35
 
36
36
 
37
+ class JWTSecretManager(models.Manager):
38
+ def get_by_natural_key(self, identifier):
39
+ return self.get(identifier=identifier)
40
+
41
+
37
42
  class JWTSecret(models.Model):
38
43
  """
39
44
  Store credentials of clients that want to access our API.
@@ -53,6 +58,11 @@ class JWTSecret(models.Model):
53
58
  _("secret"), max_length=255, help_text=_("Secret belonging to the client ID.")
54
59
  )
55
60
 
61
+ objects = JWTSecretManager()
62
+
63
+ def natural_key(self):
64
+ return (self.identifier,)
65
+
56
66
  class Meta:
57
67
  verbose_name = _("client credential")
58
68
  verbose_name_plural = _("client credentials")
@@ -21,9 +21,7 @@ class NotificationBaseView(APIView):
21
21
  swagger_schema = None
22
22
 
23
23
  permission_classes = (AuthScopesRequired,)
24
- required_scopes = Scope(
25
- SCOPE_NOTIFICATIES_PUBLICEREN_LABEL
26
- ) # FIXME: this should be standalone!
24
+ required_scopes = Scope(SCOPE_NOTIFICATIES_PUBLICEREN_LABEL, private=True)
27
25
 
28
26
  def get_serializer(self, *args, **kwargs):
29
27
  return NotificatieSerializer(*args, **kwargs)
@@ -55,7 +53,9 @@ class NotificationBaseView(APIView):
55
53
  class NotificationView(NotificationBaseView):
56
54
  action = "create"
57
55
  permission_classes = (AuthScopesRequired,)
58
- required_scopes = {"create": Scope(SCOPE_NOTIFICATIES_PUBLICEREN_LABEL)}
56
+ required_scopes = {
57
+ "create": Scope(SCOPE_NOTIFICATIES_PUBLICEREN_LABEL, private=True)
58
+ }
59
59
 
60
60
  def create(self, request, *args, **kwargs):
61
61
  return self.post(request, *args, **kwargs)
@@ -302,7 +302,7 @@ class UniekeIdentificatieValidator:
302
302
  :param identificatie_field: naam van het veld dat de identificatie bevat
303
303
  """
304
304
 
305
- message = _("Deze identificatie bestaat al binnen de organisatie")
305
+ message = _("Deze identificatie ({identificatie}) bestaat al binnen de organisatie")
306
306
  code = "identificatie-niet-uniek"
307
307
  requires_context = True
308
308
 
@@ -345,7 +345,12 @@ class UniekeIdentificatieValidator:
345
345
 
346
346
  if combination_exists:
347
347
  raise serializers.ValidationError(
348
- {self.identificatie_field: self.message}, code=self.code
348
+ {
349
+ self.identificatie_field: self.message.format(
350
+ identificatie=identificatie
351
+ )
352
+ },
353
+ code=self.code,
349
354
  )
350
355
 
351
356
 
@@ -1 +0,0 @@
1
- __version__ = "1.13.0"