Skip to content

feat(glossaries): add multi-value term filters and exportType to Export Glossary - #261

Open
innomaxx wants to merge 1 commit into
mainfrom
feature/issue-257_glossaries-add-multi-value-filters
Open

feat(glossaries): add multi-value term filters and exportType to Export Glossary#261
innomaxx wants to merge 1 commit into
mainfrom
feature/issue-257_glossaries-add-multi-value-filters

Conversation

@innomaxx

@innomaxx innomaxx commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #257

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the glossaries API resource types and tests to support the newly expanded Export Glossary request shape described in issue #257 (multi-value term filters plus exportType control).

Changes:

  • Added new export-related enums (export type and term filter enums) for glossary export requests.
  • Extended the GlossarySchemaRequest TypedDict to include new export request fields (multi-value filters and exportType).
  • Expanded glossaries resource tests to cover the new request fields passed to export_glossary.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
crowdin_api/api_resources/glossaries/types.py Extends the export glossary request typing to include new export filters and exportType.
crowdin_api/api_resources/glossaries/tests/test_glossaries_resources.py Adds a new test case exercising the updated export glossary request payload.
crowdin_api/api_resources/glossaries/enums.py Introduces new enums representing export type and multi-value term filter values for glossary export.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 24 to +33
class GlossarySchemaRequest(TypedDict):
format: Optional[GlossaryFormat]
exportFields: Optional[Iterable[GlossaryExportFields]]
exportType: Optional[GlossaryExportType]
statuses: Optional[Iterable[GlossaryExportStatus]]
partsOfSpeech: Optional[Iterable[GlossaryExportPartOfSpeech]]
types: Optional[Iterable[GlossaryExportTermType]]
genders: Optional[Iterable[GlossaryExportGender]]
authorIds: Optional[Iterable[int]]
languageIds: Optional[Iterable[str]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add multi-value term filters and exportType to Export Glossary

2 participants