nucliadb-models 6.9.0.post5072__py3-none-any.whl → 6.9.0.post5076__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.

Potentially problematic release.


This version of nucliadb-models might be problematic. Click here for more details.

nucliadb_models/common.py CHANGED
@@ -203,6 +203,15 @@ class FieldTypeName(str, Enum):
203
203
  "a": FieldTypeName.GENERIC,
204
204
  }[abbr]
205
205
 
206
+ def abbreviation(self) -> str:
207
+ return {
208
+ FieldTypeName.TEXT: "t",
209
+ FieldTypeName.FILE: "f",
210
+ FieldTypeName.LINK: "u",
211
+ FieldTypeName.CONVERSATION: "c",
212
+ FieldTypeName.GENERIC: "a",
213
+ }[self]
214
+
206
215
 
207
216
  class FieldRef(BaseModel):
208
217
  field_type: FieldTypeName
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nucliadb_models
3
- Version: 6.9.0.post5072
3
+ Version: 6.9.0.post5076
4
4
  Author-email: Nuclia <nucliadb@nuclia.com>
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Homepage, https://nuclia.com
@@ -1,5 +1,5 @@
1
1
  nucliadb_models/__init__.py,sha256=3y8-htogKuCZcbhaUZdSjTeEjUSeec9aRWyL8AlKCyM,1077
2
- nucliadb_models/common.py,sha256=YW84w1NAQARObs2nXw6YBgdxQJeVCmTZZr5lSqj-IdQ,7904
2
+ nucliadb_models/common.py,sha256=2dtKG4ZNi9p-yoNY76Uvyu1SlMeNYpH-MnuU3Q6w9Js,8169
3
3
  nucliadb_models/configuration.py,sha256=aTV5mBwYFlwiV1_nWyVAXaCh7F6lDVTVh28Xfwy8ox8,2448
4
4
  nucliadb_models/content_types.py,sha256=36Ga-iGf4ivCqgtXC7imFgegrwHB117s9eqP62JtGv0,3456
5
5
  nucliadb_models/conversation.py,sha256=t1u7CBMLJxoNad1RPeh9dmsXgMOzs2NCIDvhJa4RYxQ,5121
@@ -33,7 +33,7 @@ nucliadb_models/graph/responses.py,sha256=Sdq8OgFAL1YT-1lJyLLrkqcScvj7YTEqAUwQ-k
33
33
  nucliadb_models/internal/__init__.py,sha256=zG33bUz1rHFPtvqQPWn4rDwBJt3FJodGuQYD45quiQg,583
34
34
  nucliadb_models/internal/predict.py,sha256=Pnx6MmLfK65eExe1XnVxqmSlvMwdowewwks9BOEoqMw,2029
35
35
  nucliadb_models/internal/shards.py,sha256=__y1OZtWGiNcPQEWfSFOj8yw458WGi7mM4vZe0K-L1Y,1691
36
- nucliadb_models-6.9.0.post5072.dist-info/METADATA,sha256=wCUWzEC-ColRIs6n8FG6fj6ZRnuBCapvphXk71AYoDc,794
37
- nucliadb_models-6.9.0.post5072.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
- nucliadb_models-6.9.0.post5072.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
39
- nucliadb_models-6.9.0.post5072.dist-info/RECORD,,
36
+ nucliadb_models-6.9.0.post5076.dist-info/METADATA,sha256=Zr60xoPpDPI8EmOW2FEKVKCN9g9WIF9Pjg2iycjiADU,794
37
+ nucliadb_models-6.9.0.post5076.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
38
+ nucliadb_models-6.9.0.post5076.dist-info/top_level.txt,sha256=UrY1I8oeovIRwkXLYplssTrxQdUjhSEFDFbnwaIV3tA,16
39
+ nucliadb_models-6.9.0.post5076.dist-info/RECORD,,