Big bSDD overhaul for properties and classifications. See description.

* bSDD now supports a couple more args when querying the API.
 * Fetching properties via the classification UI has been removed
 * The bSDD dictionary selector has been merged into the classification
source dropdown
 * The bSDD dictionary selector merged into the property set name
dropdown
 * You can now search for properties in the bSDD directly when adding
properties
 * You can browse properties via groups or classifications (based on
assigned classifications)
 * You can browse properties via keyword (with some limitations due to
the API)
 * You can selectively choose which properties you then want to add.
Only basic support right now.
This commit is contained in:
Dion Moult
2025-05-28 20:51:02 +10:00
parent e9eb5f892a
commit a929ab0c4f
15 changed files with 448 additions and 85 deletions
+14 -2
View File
@@ -658,13 +658,25 @@ class Client:
return self.get(endpoint, params)
def get_properties(
self, dictionary_uri: str, offset: int = 0, limit: int = 100, language_code: str = "", version: int = 1
self,
dictionary_uri: str,
search_text: str = "",
offset: int = 0,
limit: int = 100,
language_code: str = "",
version: int = 1,
) -> DictionaryPropertiesResponseContractV1:
"""
Get Dictionary with its properties
"""
endpoint = f"Dictionary/v{version}/Properties"
params = {"Uri": dictionary_uri, "languageCode": language_code, "offset": offset, "limit": limit}
params = {
"Uri": dictionary_uri,
"SearchText": search_text,
"languageCode": language_code,
"offset": offset,
"limit": limit,
}
return self.get(endpoint, params)
def get_class(