ds-caselaw-marklogic-api-client 37.1.0__py3-none-any.whl → 37.2.0__py3-none-any.whl

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.
@@ -11,6 +11,7 @@ from caselawclient.models.documents import Document
11
11
  from caselawclient.models.documents.body import DocumentBody
12
12
  from caselawclient.models.identifiers import Identifier
13
13
  from caselawclient.models.identifiers.fclid import FindCaseLawIdentifier
14
+ from caselawclient.models.identifiers.neutral_citation import NeutralCitationNumber
14
15
  from caselawclient.models.judgments import Judgment
15
16
  from caselawclient.models.press_summaries import PressSummary
16
17
  from caselawclient.responses.search_result import SearchResult, SearchResultMetadata
@@ -143,24 +144,6 @@ class SearchResultMetadataFactory(SimpleFactory):
143
144
  }
144
145
 
145
146
 
146
- class SearchResultFactory(SimpleFactory):
147
- target_class = SearchResult
148
-
149
- PARAMS_MAP = {
150
- "uri": "d-a1b2c3",
151
- "name": "Judgment v Judgement",
152
- "neutral_citation": "[2025] UKSC 123",
153
- "court": "Court of Testing",
154
- "date": datetime.datetime(2023, 2, 3),
155
- "transformation_date": datetime.datetime(2023, 2, 3, 12, 34).isoformat(),
156
- "metadata": SearchResultMetadataFactory.build(),
157
- "is_failure": False,
158
- "matches": None,
159
- "slug": "uksc/2025/1",
160
- "content_hash": "ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73",
161
- }
162
-
163
-
164
147
  class IdentifierResolutionFactory:
165
148
  @classmethod
166
149
  def build(
@@ -189,3 +172,22 @@ class IdentifierResolutionsFactory:
189
172
  if resolutions is None:
190
173
  resolutions = [IdentifierResolutionFactory.build()]
191
174
  return IdentifierResolutions(resolutions)
175
+
176
+
177
+ class SearchResultFactory(SimpleFactory):
178
+ target_class = SearchResult
179
+
180
+ PARAMS_MAP = {
181
+ "uri": "d-a1b2c3",
182
+ "name": "Judgment v Judgement",
183
+ "neutral_citation": "[2025] UKSC 123",
184
+ "court": "Court of Testing",
185
+ "date": datetime.datetime(2023, 2, 3),
186
+ "transformation_date": str(datetime.datetime(2023, 2, 3, 12, 34)),
187
+ "metadata": SearchResultMetadataFactory.build(),
188
+ "is_failure": False,
189
+ "matches": None,
190
+ "slug": "uksc/2025/1",
191
+ "content_hash": "ed7002b439e9ac845f22357d822bac1444730fbdb6016d3ec9432297b9ec9f73",
192
+ "identifiers": {"id-1": NeutralCitationNumber("[2025] UKSC 123", "id-1")},
193
+ }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ds-caselaw-marklogic-api-client
3
- Version: 37.1.0
3
+ Version: 37.2.0
4
4
  Summary: An API client for interacting with the underlying data in Find Caselaw.
5
5
  Home-page: https://github.com/nationalarchives/ds-caselaw-custom-api-client
6
6
  Keywords: national archives,caselaw
@@ -4,7 +4,7 @@ caselawclient/client_helpers/__init__.py,sha256=eucyUXwUqI72TPw-C5zLcHlMu4GtFY50
4
4
  caselawclient/client_helpers/search_helpers.py,sha256=R99HyRLeYHgsw2L3DOidEqlKLLvs6Tga5rKTuWQViig,1525
5
5
  caselawclient/content_hash.py,sha256=0cPC4OoABq0SC2wYFX9-24DodNigeOqksDxgxQH_hUA,2221
6
6
  caselawclient/errors.py,sha256=JC16fEGq_MRJX-_KFzfINCV2Cqx8o6OWOt3C16rQd84,3142
7
- caselawclient/factories.py,sha256=tAZQ8RfWQwdZsqc6qScXyaXV6nk5lScB3Chx8fwRRro,6949
7
+ caselawclient/factories.py,sha256=XgrnG61hAJ-ty61DLv2qNEAo9ITuDZowZ4MRmPrf2Bg,7109
8
8
  caselawclient/identifier_resolution.py,sha256=B5I1sD7o7YjzsXMECjbKjgiGLDda5bGhejsJ-lYpTIg,2429
9
9
  caselawclient/models/__init__.py,sha256=kd23EUpvaC7aLHdgk8farqKAQEx3lf7RvNT2jEatvlg,68
10
10
  caselawclient/models/documents/__init__.py,sha256=4o6-8Iy5ZA8KEaqOt8xkpbqc7vwOzm8IoHvI8897mPk,19460
@@ -83,7 +83,7 @@ caselawclient/xquery/validate_document.xqy,sha256=PgaDcnqCRJPIVqfmWsNlXmCLNKd21q
83
83
  caselawclient/xquery/xslt.xqy,sha256=w57wNijH3dkwHkpKeAxqjlghVflQwo8cq6jS_sm-erM,199
84
84
  caselawclient/xquery/xslt_transform.xqy,sha256=cccaFiGkCcvSfDv007UriZ3I4ak2nTLP1trRZdbOoS8,2462
85
85
  caselawclient/xquery_type_dicts.py,sha256=zuyDGTkcN6voOXCm3APXItZ-Ey6tZ2hdZummZWzjl50,6489
86
- ds_caselaw_marklogic_api_client-37.1.0.dist-info/LICENSE.md,sha256=fGMzyyLuQW-IAXUeDSCrRdsYW536aEWThdbpCjo6ZKg,1108
87
- ds_caselaw_marklogic_api_client-37.1.0.dist-info/METADATA,sha256=rwN7JhdRezJIDek5Vq-u2_C6sPf4zDQ4GXhVnezYzg8,4206
88
- ds_caselaw_marklogic_api_client-37.1.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
89
- ds_caselaw_marklogic_api_client-37.1.0.dist-info/RECORD,,
86
+ ds_caselaw_marklogic_api_client-37.2.0.dist-info/LICENSE.md,sha256=fGMzyyLuQW-IAXUeDSCrRdsYW536aEWThdbpCjo6ZKg,1108
87
+ ds_caselaw_marklogic_api_client-37.2.0.dist-info/METADATA,sha256=qdYokDil_ATl0k2TaCTG0FadpU3lbe7ydsa0NMpt6aI,4206
88
+ ds_caselaw_marklogic_api_client-37.2.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
89
+ ds_caselaw_marklogic_api_client-37.2.0.dist-info/RECORD,,