Skip to content

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

Merged
andrii-bodnar merged 2 commits into
masterfrom
copilot/add-multi-value-term-filters
Jun 15, 2026
Merged

feat(glossaries): add multi-value term filters and exportType to Export Glossary#682
andrii-bodnar merged 2 commits into
masterfrom
copilot/add-multi-value-term-filters

Conversation

Copilot AI commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

The Crowdin API updated POST /glossaries/{glossaryId}/exports to support an exportType control and plural array filters for term filtering. The ExportGlossaryRequest interface was missing all of these fields.

New types (GlossariesModel)

  • ExportType'concepts' | 'terms'
  • TermStatus, TermPartOfSpeech, TermType, TermGender — UPPERCASE enum types matching the export API (distinct from the existing lowercase term-model types)

Updated ExportGlossaryRequest

  • New fields: exportType, statuses, partsOfSpeech, types, genders, authorIds, languageIds, text, caseSensitive, searchStrict, searchFullMatch, dateFrom, dateTo
  • Deprecated singular fields (status, partOfSpeech, type, gender, authorId) added with @deprecated JSDoc pointing to their plural replacements
await api.glossaries.exportGlossary(glossaryId, {
    format: 'csv',
    exportType: 'terms',
    statuses: ['PREFERRED', 'ADMITTED'],
    partsOfSpeech: ['NOUN', 'VERB'],
    authorIds: [42],
    languageIds: ['uk', 'de'],
});

Copilot AI changed the title [WIP] Add multi-value term filters and exportType to Export Glossary feat(glossaries): add multi-value term filters and exportType to Export Glossary Jun 15, 2026
Copilot AI requested a review from andrii-bodnar June 15, 2026 10:08
@codecov

codecov Bot commented Jun 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.14%. Comparing base (8d7b4d1) to head (835d69c).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #682   +/-   ##
=======================================
  Coverage   90.14%   90.14%           
=======================================
  Files          41       41           
  Lines        2189     2189           
  Branches      256      256           
=======================================
  Hits         1973     1973           
  Misses         82       82           
  Partials      134      134           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andrii-bodnar andrii-bodnar marked this pull request as ready for review June 15, 2026 11:25
@andrii-bodnar andrii-bodnar linked an issue Jun 15, 2026 that may be closed by this pull request
@andrii-bodnar andrii-bodnar merged commit 2e5b101 into master Jun 15, 2026
12 checks passed
@andrii-bodnar andrii-bodnar deleted the copilot/add-multi-value-term-filters branch June 15, 2026 11:26
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