stream-chat-ruby 2.11.3 → 2.12.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c930a4ce8f695581d1dbf0eb027fc94433a2bdf126cf626ef243dd7c78b572c
4
- data.tar.gz: dcbe225ab70ddb6088bb7a8478e003ddcb6fb2d4a53fd9e113137257bc6464ce
3
+ metadata.gz: 22ca273c350cdc7bdc45e1bb675745d611c81a1d37c9f810ba1bfe50f81e2f5b
4
+ data.tar.gz: 654923dd0d2796bef150ea6796200753c6ccfe3c3085a8997d1d540037f0af34
5
5
  SHA512:
6
- metadata.gz: 70346465f94bf6d84ffb0d98d5852f27bfd5a17dcb349238f19e7398fcb3061bbb10c3e3eedd62ff65b1c2a1158cb267903ec4fda9a4cfae5d3aa77ce31d3eff
7
- data.tar.gz: 61aa20fe924e7a16f454593c223b4abcbf78d4bcbe1e7443876ca7194d64f9167e826f47a856276cf1fbef68be86868ed3d3ad6003692054c9d5e811cc770c59
6
+ metadata.gz: 927c84dea77c1cd39149760b30bb59e87205e867244a46b88368e68b375c3681914d079ee5e65075ee692cace35e798f52db343a77d7547873c7d3fd4989d905
7
+ data.tar.gz: 1b25d0b7064a6d087f557fa45d1c676731382681fe33e7e60a1269b304f219abb80f066cf9fa319bb14cd3bd39f339a0517fa999b92ff90ff2c0dd7aaea823c7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## November 1st, 2021 - 2.12.0
2
+
3
+ - Add support for async endpoints
4
+ - get_task
5
+ - delete_channels
6
+ _ delete_users
7
+
1
8
  ## October 22nd, 2021 - 2.11.3
2
9
 
3
10
  - Don't log the entire response when creating exception
@@ -12,6 +12,8 @@ require 'stream-chat/util'
12
12
 
13
13
  module StreamChat
14
14
  DEFAULT_BLOCKLIST = 'profanity_en_2020_v1'
15
+ SOFT_DELETE = 'soft'
16
+ HARD_DELETE = 'hard'
15
17
 
16
18
  class Client
17
19
  BASE_URL = 'https://chat.stream-io-api.com'
@@ -293,6 +295,18 @@ module StreamChat
293
295
  get("export_channels/#{task_id}")
294
296
  end
295
297
 
298
+ def get_task(task_id)
299
+ get("tasks/#{task_id}")
300
+ end
301
+
302
+ def delete_users(user_ids, user: SOFT_DELETE, messages: nil, conversations: nil)
303
+ post('users/delete', data: { user_ids: user_ids, user: user, messages: messages, conversations: conversations })
304
+ end
305
+
306
+ def delete_channels(cids, hard_delete: false)
307
+ post('channels/delete', data: { cids: cids, hard_delete: hard_delete })
308
+ end
309
+
296
310
  def revoke_tokens(before)
297
311
  before = before.rfc3339 if before.instance_of?(DateTime)
298
312
  update_app_settings({ 'revoke_tokens_issued_before' => before })
@@ -3,5 +3,5 @@
3
3
  # lib/version.rb
4
4
 
5
5
  module StreamChat
6
- VERSION = '2.11.3'
6
+ VERSION = '2.12.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream-chat-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.11.3
4
+ version: 2.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mircea Cosbuc
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-22 00:00:00.000000000 Z
11
+ date: 2021-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  - !ruby/object:Gem::Version
122
122
  version: '0'
123
123
  requirements: []
124
- rubygems_version: 3.0.3
124
+ rubygems_version: 3.1.2
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: The low level client for serverside calls for Stream Chat.