strongmind-platform-sdk 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cd9e8303f15c2836a1a11f1435449820b1146502186a032c170483d7a94b61ec
4
- data.tar.gz: 871fbbb7866141a5e9e0d3923ba425589315781aeb5cbd75d9626985c8816165
3
+ metadata.gz: 229a1f19da293c59ecf0a3b9809abbc5d30fadd3aa748d7f84dd4dc158bc7fab
4
+ data.tar.gz: ba044411c386a528168a2fc487c62873e0deb1ee298d16216080243cede41160
5
5
  SHA512:
6
- metadata.gz: aac52f03c57ebcfcab562a8e1530582387ddd0752db515b498ec96fd9de7a18f55130eeaeaf74451d82ed3c03f2a551cf03a8245490a8dfa7f157a18db83aab8
7
- data.tar.gz: b5799b0a7106a750261f359ab1d0d41c93e733b1abaf0cf9349e89a2727ed44ba3278791bdfe0bce2d9b324bd4bff0e52f3b547c2bb9ad64ff39da4a6413491c
6
+ metadata.gz: 7166c773a5f2ff3225ccc5cdf5b2fdb1bed70a154e7c5fbc1df3a8f574f9d7e2abcf8a5d2f5ed18f9a07c9b0c15efcd8c07ebadcca9a366f60043c18ffcdbedd
7
+ data.tar.gz: c4a89a48202708d8ca9502951d8e94ce975644342952a0a0dc48e41b779bb98f2adabee1bee7d439d5837a7185cfcd7782f832ba192bf695319aef82af8edcf4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.3.0)
4
+ strongmind-platform-sdk (3.5.0)
5
5
  aws-sdk-secretsmanager (~> 1.66)
6
6
  devise
7
7
  faraday (~> 2.5, >= 2.5.2)
@@ -40,8 +40,8 @@ GEM
40
40
  ast (2.4.2)
41
41
  attr_required (1.0.1)
42
42
  aws-eventstream (1.2.0)
43
- aws-partitions (1.843.0)
44
- aws-sdk-core (3.185.1)
43
+ aws-partitions (1.847.0)
44
+ aws-sdk-core (3.186.0)
45
45
  aws-eventstream (~> 1, >= 1.0.2)
46
46
  aws-partitions (~> 1, >= 1.651.0)
47
47
  aws-sigv4 (~> 1.5)
@@ -56,7 +56,7 @@ GEM
56
56
  builder (3.2.4)
57
57
  concurrent-ruby (1.2.2)
58
58
  crass (1.0.6)
59
- date (3.3.3)
59
+ date (3.3.4)
60
60
  devise (4.9.3)
61
61
  bcrypt (~> 3.0)
62
62
  orm_adapter (~> 0.1)
@@ -104,12 +104,12 @@ GEM
104
104
  mini_mime (1.1.5)
105
105
  mini_portile2 (2.8.5)
106
106
  minitest (5.18.0)
107
- net-imap (0.4.2)
107
+ net-imap (0.4.4)
108
108
  date
109
109
  net-protocol
110
110
  net-pop (0.1.2)
111
111
  net-protocol
112
- net-protocol (0.2.1)
112
+ net-protocol (0.2.2)
113
113
  timeout
114
114
  net-smtp (0.4.0)
115
115
  net-protocol
@@ -144,7 +144,7 @@ GEM
144
144
  parser (3.2.2.1)
145
145
  ast (~> 2.4.1)
146
146
  public_suffix (5.0.3)
147
- racc (1.7.1)
147
+ racc (1.7.3)
148
148
  rack (2.2.8)
149
149
  rack-oauth2 (2.2.0)
150
150
  activesupport
@@ -214,13 +214,13 @@ GEM
214
214
  faraday (~> 2.0)
215
215
  faraday-follow_redirects
216
216
  thor (1.3.0)
217
- timeout (0.4.0)
217
+ timeout (0.4.1)
218
218
  typhoeus (1.4.0)
219
219
  ethon (>= 0.9.0)
220
220
  tzinfo (2.0.6)
221
221
  concurrent-ruby (~> 1.0)
222
222
  unicode-display_width (2.4.2)
223
- uri (0.12.2)
223
+ uri (0.13.0)
224
224
  validate_email (0.1.6)
225
225
  activemodel (>= 3.0)
226
226
  mail (>= 2.2.5)
@@ -127,6 +127,20 @@ module PlatformSdk
127
127
  response.body
128
128
  end
129
129
 
130
+ def update_space(space_id, title: nil)
131
+ validate_update_space_args(space_id, title)
132
+ body = { space: { title: title } }
133
+ response = patch("/spaces/#{space_id}", body.to_json)
134
+ response.body
135
+ end
136
+
137
+ def end_ongoing_session(space_id)
138
+ raise ArgumentError, "space_id must have a value" if space_id.nil?
139
+
140
+ response = post("/spaces/#{space_id}/endOngoingSession", {}.to_json)
141
+ response.body
142
+ end
143
+
130
144
  private
131
145
 
132
146
  def build_connection
@@ -180,6 +194,11 @@ module PlatformSdk
180
194
  end
181
195
  end
182
196
 
197
+ def validate_update_space_args(space_id, title)
198
+ raise ArgumentError, "space_id must have a value" if space_id.nil?
199
+ raise ArgumentError, "title must have a value" if title.nil?
200
+ end
201
+
183
202
  def validate_api_user_role!(role)
184
203
  return if VALID_API_USER_ROLES.include?(role)
185
204
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlatformSdk
4
- VERSION = "3.3.0"
4
+ VERSION = "3.5.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-platform-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-08 00:00:00.000000000 Z
11
+ date: 2023-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday