Skip to content

Commit 5fb77e2

Browse files
authored
feat: remove filterTags from channel batch update API (#161)
1 parent a67e291 commit 5fb77e2

1 file changed

Lines changed: 11 additions & 44 deletions

File tree

lib/GetStream/StreamChat/ChannelBatchUpdater.php

Lines changed: 11 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(Client $client)
2121

2222
/**
2323
* Adds members to channels matching the filter.
24-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
24+
* @param array $filter Filter to match channels (keys: cids, types)
2525
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
2626
* @return StreamResponse
2727
* @throws StreamException
@@ -38,7 +38,7 @@ public function addMembers(array $filter, array $members): StreamResponse
3838

3939
/**
4040
* Removes members from channels matching the filter.
41-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
41+
* @param array $filter Filter to match channels (keys: cids, types)
4242
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
4343
* @return StreamResponse
4444
* @throws StreamException
@@ -55,7 +55,7 @@ public function removeMembers(array $filter, array $members): StreamResponse
5555

5656
/**
5757
* Invites members to channels matching the filter.
58-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
58+
* @param array $filter Filter to match channels (keys: cids, types)
5959
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
6060
* @return StreamResponse
6161
* @throws StreamException
@@ -72,7 +72,7 @@ public function inviteMembers(array $filter, array $members): StreamResponse
7272

7373
/**
7474
* Assigns roles to members in channels matching the filter.
75-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
75+
* @param array $filter Filter to match channels (keys: cids, types)
7676
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
7777
* @return StreamResponse
7878
* @throws StreamException
@@ -89,7 +89,7 @@ public function assignRoles(array $filter, array $members): StreamResponse
8989

9090
/**
9191
* Adds moderators to channels matching the filter.
92-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
92+
* @param array $filter Filter to match channels (keys: cids, types)
9393
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
9494
* @return StreamResponse
9595
* @throws StreamException
@@ -106,7 +106,7 @@ public function addModerators(array $filter, array $members): StreamResponse
106106

107107
/**
108108
* Removes moderator role from members in channels matching the filter.
109-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
109+
* @param array $filter Filter to match channels (keys: cids, types)
110110
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
111111
* @return StreamResponse
112112
* @throws StreamException
@@ -123,7 +123,7 @@ public function demoteModerators(array $filter, array $members): StreamResponse
123123

124124
/**
125125
* Hides channels matching the filter for the specified members.
126-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
126+
* @param array $filter Filter to match channels (keys: cids, types)
127127
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
128128
* @return StreamResponse
129129
* @throws StreamException
@@ -140,7 +140,7 @@ public function hide(array $filter, array $members): StreamResponse
140140

141141
/**
142142
* Shows channels matching the filter for the specified members.
143-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
143+
* @param array $filter Filter to match channels (keys: cids, types)
144144
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
145145
* @return StreamResponse
146146
* @throws StreamException
@@ -157,7 +157,7 @@ public function show(array $filter, array $members): StreamResponse
157157

158158
/**
159159
* Archives channels matching the filter for the specified members.
160-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
160+
* @param array $filter Filter to match channels (keys: cids, types)
161161
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
162162
* @return StreamResponse
163163
* @throws StreamException
@@ -174,7 +174,7 @@ public function archive(array $filter, array $members): StreamResponse
174174

175175
/**
176176
* Unarchives channels matching the filter for the specified members.
177-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
177+
* @param array $filter Filter to match channels (keys: cids, types)
178178
* @param array $members Array of member arrays, each with user_id (required) and optional channel_role
179179
* @return StreamResponse
180180
* @throws StreamException
@@ -191,7 +191,7 @@ public function unarchive(array $filter, array $members): StreamResponse
191191

192192
/**
193193
* Updates data on channels matching the filter.
194-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
194+
* @param array $filter Filter to match channels (keys: cids, types)
195195
* @param array $data Data to update (keys: frozen, disabled, custom, team, config_overrides, auto_translation_enabled, auto_translation_language)
196196
* @return StreamResponse
197197
* @throws StreamException
@@ -206,37 +206,4 @@ public function updateData(array $filter, array $data): StreamResponse
206206
return $this->client->updateChannelsBatch($options);
207207
}
208208

209-
/**
210-
* Adds filter tags to channels matching the filter.
211-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
212-
* @param array $tags Array of filter tag strings
213-
* @return StreamResponse
214-
* @throws StreamException
215-
*/
216-
public function addFilterTags(array $filter, array $tags): StreamResponse
217-
{
218-
$options = [
219-
"operation" => "addFilterTags",
220-
"filter" => $filter,
221-
"filter_tags_update" => $tags,
222-
];
223-
return $this->client->updateChannelsBatch($options);
224-
}
225-
226-
/**
227-
* Removes filter tags from channels matching the filter.
228-
* @param array $filter Filter to match channels (keys: cids, types, filter_tags)
229-
* @param array $tags Array of filter tag strings
230-
* @return StreamResponse
231-
* @throws StreamException
232-
*/
233-
public function removeFilterTags(array $filter, array $tags): StreamResponse
234-
{
235-
$options = [
236-
"operation" => "removeFilterTags",
237-
"filter" => $filter,
238-
"filter_tags_update" => $tags,
239-
];
240-
return $this->client->updateChannelsBatch($options);
241-
}
242209
}

0 commit comments

Comments
 (0)