Skip to content

Conversation

@totalimmersion
Copy link
Contributor

No description provided.

Signed-off-by: Lennart Kuijs <mail@lennartkuijs.nl>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 12, 2026

Size Change: +1.15 kB (+0.32%)

Total Size: 360 kB

Filename Size Change
dist/cjs/index.browser.js 120 kB +382 B (+0.32%)
dist/cjs/index.node.js 121 kB +382 B (+0.32%)
dist/esm/index.mjs 119 kB +386 B (+0.33%)

compressed-size-action

Signed-off-by: Lennart Kuijs <mail@lennartkuijs.nl>
@oliverlaz oliverlaz changed the title [CHA-1584] - Predefined filters support feat: [CHA-1584] - Predefined filters support Jan 14, 2026
* Values to interpolate into the predefined filter template placeholders.
* Only used when predefined_filter is provided.
*/
filter_values?: Record<string, unknown>;
Copy link
Contributor

Choose a reason for hiding this comment

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

Keys in this object will need to correspond to some specific entity field names or it can really be any string?

Copy link
Contributor

Choose a reason for hiding this comment

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

@totalimmersion Could you give an example of interpolation, please?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can be any string

Copy link
Contributor Author

Choose a reason for hiding this comment

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


export type PredefinedFilterOperation = 'QueryChannels';

export type PredefinedFilterSortParam = {
Copy link
Contributor

Choose a reason for hiding this comment

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

@totalimmersion there was a discussion btw @kanat and @arnautov-anton regarding type sort field. Is this change maybe related to the general change in sort fields? Would this PR, where type field is introduced be relevant for your PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure about that discussion, this pr follows current practices

`${this.baseURL}/predefined_filters`,
{
...paginationOptions,
...(sort ? { sort: JSON.stringify(sort) } : {}),
Copy link
Contributor

Choose a reason for hiding this comment

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

@totalimmersion Why do we convert the object into string? I see in types.ts the following declarations implying and usually objects are not stringified in other API calls in other methods:

export type PredefinedFilterSort = SortParam[];

export type ListPredefinedFiltersOptions = Pager & {
  sort?: PredefinedFilterSort;
};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because it's a GET request

totalimmersion and others added 4 commits January 14, 2026 13:50
Co-authored-by: MartinCupela <32706194+MartinCupela@users.noreply.github.com>
Co-authored-by: MartinCupela <32706194+MartinCupela@users.noreply.github.com>
@totalimmersion totalimmersion merged commit cb6d2d1 into master Jan 14, 2026
4 checks passed
@totalimmersion totalimmersion deleted the feature/named_filters branch January 14, 2026 17:05
github-actions bot pushed a commit that referenced this pull request Jan 20, 2026
## [9.29.0](v9.28.0...v9.29.0) (2026-01-20)

### Bug Fixes

* escape strings interpolated into regular expressions ([#1669](#1669)) ([32705e1](32705e1))

### Features

* [CHA-1584] - Predefined filters support ([#1675](#1675)) ([cb6d2d1](cb6d2d1))
* add Future Channel Bans support [CHA-1696] ([#1677](#1677)) ([2effaba](2effaba))
@stream-ci-bot
Copy link

🎉 This PR is included in version 9.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants